* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #161617;
    color: #FEFEFE;
    overflow-x: hidden;
}

/* Login Section */
.login-section {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #161617;
}

.login-container {
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: #222325;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    font-weight: 700;
    font-size: 36px;
    color: #65B6F2;
    margin-bottom: 8px;
}

.login-subtitle {
    font-weight: 400;
    font-size: 16px;
    color: #A4ADB3;
}

/* Form */
.login-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #FEFEFE;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #34363A;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #FEFEFE;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input::placeholder {
    color: #616470;
}

.form-input:focus {
    outline: none;
    border-color: #65B6F2;
    background: #3a3c40;
}

.form-input:hover:not(:focus) {
    background: #3a3c40;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.password-toggle:hover {
    opacity: 0.7;
}

.password-toggle img {
    width: 20px;
    height: 20px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #65B6F2;
}

.checkbox-text {
    font-weight: 400;
    font-size: 14px;
    color: #A4ADB3;
    user-select: none;
}

.forgot-link {
    font-weight: 500;
    font-size: 14px;
    color: #65B6F2;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #4E9DF7;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: #65B6F2;
    border: none;
    border-radius: 8px;
    color: #161617;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #4E9DF7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 182, 242, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #34363A;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: #222325;
    font-weight: 400;
    font-size: 14px;
    color: #616470;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.social-btn {
    width: 100%;
    padding: 12px 24px;
    background: #34363A;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #FEFEFE;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #3a3c40;
    border-color: #4a4c50;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.social-btn.google:hover {
    border-color: #4285F4;
}

.social-btn.discord:hover {
    border-color: #5865F2;
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    padding-top: 24px;
}

.signup-text {
    font-weight: 400;
    font-size: 14px;
    color: #A4ADB3;
    margin-right: 8px;
}

.signup-btn {
    font-weight: 600;
    font-size: 14px;
    color: #65B6F2;
    text-decoration: none;
    transition: color 0.3s;
}

.signup-btn:hover {
    color: #4E9DF7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-section {
        padding: 40px 20px;
        min-height: calc(100vh - 60px);
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-header {
        margin-bottom: 32px;
    }

    .login-logo {
        font-size: 32px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .login-btn {
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
    }

    .login-logo {
        font-size: 28px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .password-wrapper .form-input {
        padding-right: 44px;
    }

    .social-btn span {
        font-size: 13px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.form-input:focus,
.login-btn:focus,
.social-btn:focus,
.forgot-link:focus,
.signup-btn:focus {
    outline: 2px solid #65B6F2;
    outline-offset: 2px;
}

/* Form Validation States */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #F94E51;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #05DF72;
}

/* Loading State */
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}