:root {
    --kunkwan-red: #ed1c24;
    --kunkwan-red-dark: #c9181f;
    --text-dark: #212529;
    --text-gray: #6c757d;
    --bg-light: #f8f9fa;
    --input-bg: #e9ecef;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Main Login Card */
.login-card {
    width: 100%;
    max-width: 1200px;
    min-height: 650px;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #fff;
}

/* Left Panel: Red Background (50% width) */
.login-visual-panel {
    flex: 0 0 50%;
    background: var(--kunkwan-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
}

.mascot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.mascot-img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.visual-text {
    text-align: center;
}

.visual-title {
    font-family: 'SUSE', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.visual-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Right Panel: Login Form (50% width) */
.login-form-panel {
    flex: 0 0 50%;
    background: #ffffff;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Logo at Top Left */
.login-logo-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-icon {
    height: 35px;
    width: auto;
}

.logo-text-dark {
    font-family: 'SUSE', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* Welcome Header */
.login-header {
    margin-bottom: 2.5rem;
}

.welcome-title {
    font-family: 'SUSE', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

/* Form Styles */
.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.2rem;
    z-index: 1;
}

.form-input-custom {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-input-custom::placeholder {
    color: var(--text-gray);
}

.form-input-custom:focus {
    background: #ffffff;
    border-color: var(--kunkwan-red);
    box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.1);
}

.form-input-custom:focus + .input-icon-left,
.form-group-custom:focus-within .input-icon-left {
    color: var(--kunkwan-red);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--kunkwan-red);
}

.checkbox-text {
    user-select: none;
}

.forgot-link {
    color: var(--kunkwan-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Sign In Button */
.btn-signin-red {
    width: 100%;
    padding: 1rem;
    background: var(--kunkwan-red);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-signin-red:hover {
    background: var(--kunkwan-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.3);
}

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

.btn-signin-red i {
    font-size: 1.2rem;
}

/* Social Divider */
.social-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.divider-text {
    position: relative;
    background: #ffffff;
    padding: 0 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-button:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    border-color: var(--kunkwan-red);
    color: var(--kunkwan-red);
}

.social-letter {
    display: block;
}

.social-button i {
    font-size: 1.3rem;
}

/* Error Alert */
.error-alert {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-alert i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
    }

    .login-visual-panel {
        flex: 0 0 auto;
        min-height: 300px;
        padding: 2rem;
    }

    .mascot-container {
        margin-bottom: 2rem;
    }

    .mascot-img {
        width: 150px;
    }

    .visual-title {
        font-size: 2.5rem;
    }

    .login-form-panel {
        flex: 1;
        padding: 2.5rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .login-visual-panel {
        min-height: 250px;
        padding: 1.5rem;
    }

    .mascot-container {
        margin-bottom: 1.5rem;
    }

    .mascot-img {
        width: 120px;
    }

    .visual-title {
        font-size: 2rem;
    }

    .visual-subtitle {
        font-size: 0.95rem;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
    }

    .login-logo-top {
        margin-bottom: 2rem;
    }

    .logo-icon {
        height: 30px;
    }

    .logo-text-dark {
        font-size: 1.25rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .mascot-container {
        margin-bottom: 1rem;
    }

    .mascot-img {
        width: 100px;
    }

    .visual-title {
        font-size: 1.75rem;
    }

    .login-form-panel {
        padding: 1.5rem 1.25rem;
    }
}
