/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

:root {
    --primary-color: #f6a700;
    --bg-dark: #000000;
    --bg-input: #1a1a1a;
    --text-white: #ffffff;
    --text-muted: #bdbdbd;
    --border-color: #333333;
    --error-color: #ff4444;
    --success-color: #00c851;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container */
.login-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.login-box {
    background: var(--bg-dark);
    padding: 48px 28px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 48px;
}

.logo {
    height: 80px;
    width: auto;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
    margin: 0;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.required {
    color: var(--primary-color);
    margin-left: 4px;
}

/* Inputs */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 15px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    background: rgba(246, 167, 0, 0.05);
}

input[type="text"]:disabled,
input[type="password"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Validation Messages */
.validation-message {
    font-size: 14px;
    color: var(--error-color);
    min-height: 20px;
    display: block;
    margin-top: 4px;
}

.validation-message.success {
    color: var(--success-color);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 22px 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--bg-dark);
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.3px;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #e89c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 167, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
    text-align: center;
}

.link-forgot {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.link-forgot:hover {
    color: var(--primary-color);
}

.link-register {
    color: var(--text-muted);
    font-size: 16px;
}

.link-register a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link-register a:hover {
    color: #e89c00;
    text-decoration: underline;
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .login-container {
        max-width: 600px;
    }

    .login-box {
        padding: 60px 48px;
    }

    .logo {
        height: 100px;
    }

    .logo-section h1 {
        font-size: 36px;
    }

    .form-group label {
        font-size: 17px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 20px 24px;
        font-size: 16px;
    }

    .btn-submit {
        padding: 24px 28px;
        font-size: 19px;
    }

    .link-forgot,
    .link-register {
        font-size: 16px;
    }
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}
