﻿:root {
            --ink: #172033;
            --muted: #64748b;
            --line: #d9e2ec;
            --blue: #667eea;
            --blue-dark: #764ba2;
            --panel: #ffffff;
            --auth-bg: #eef3f8;
        }

        html {
            min-height: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", Arial, sans-serif;
            background: var(--auth-bg) url('../picture/html/efemModel.jpeg') left center / contain no-repeat;
            margin: 0;
            min-height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            position: relative;
            padding-right: 40px;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: rgba(238, 243, 248, 0.18);
            pointer-events: none;
            z-index: 0;
        }

        .login-container {
            position: relative;
            z-index: 1;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
            padding: 40px;
            width: 100%;
            max-width: 450px;
            animation: slideIn 0.5s ease-out;
        }

        .login-brand {
            position: fixed;
            top: 24px;
            left: 24px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 112px;
            height: 112px;
        }

        .login-brand img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-header {
            margin-bottom: 30px;
            text-align: center;
        }

        .login-header h2 {
            color: #333333;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .login-header p {
            margin: 0;
            color: #666666;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #333333;
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #dddddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .password-toggle {
            position: absolute;
            right: 8px;
            top: 65%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #666666;
            font-size: 13px;
            font-weight: 700;
            background: none;
            border: none;
            padding: 4px 6px;
            line-height: 1;
        }

        .password-toggle:focus {
            outline: 2px solid var(--blue);
            outline-offset: 2px;
            border-radius: 4px;
        }

        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .remember-me {
            display: flex;
            align-items: center;
        }

        .remember-me input {
            margin-right: 8px;
        }

        .forgot-password {
            color: var(--blue);
            text-decoration: none;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .login-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .terms-container {
            margin: 20px 0;
            font-size: 14px;
            color: #666666;
            text-align: center;
        }

        .terms-container a {
            color: var(--blue);
            text-decoration: none;
        }

        .terms-container a:hover {
            text-decoration: underline;
        }

        .tab-container {
            margin-bottom: 30px;
        }

        .tab-button {
            background: none;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            font-weight: 500;
            color: var(--muted);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .tab-button.active {
            color: var(--blue);
            border-bottom: 2px solid var(--blue);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        #register .form-group {
            margin-bottom: 10px;
        }

        #register .form-group label {
            margin-bottom: 4px;
            font-size: 14px;
        }

        #register .form-group input {
            padding: 7px 11px;
            font-size: 14px;
            border-radius: 6px;
        }

        #register .password-toggle {
            top: auto;
            bottom: 8px;
            transform: none;
            font-size: 16px;
        }

        #register .login-btn {
            padding: 10px;
            margin-top: 4px;
            font-size: 15px;
        }

        #register .terms-container {
            margin: 10px 0 0;
            font-size: 13px;
        }

        #register .form-row {
            display: flex;
            gap: 12px;
        }

        #register .form-half {
            flex: 1;
            min-width: 0;
        }

        #register .form-half input {
            width: 100%;
        }

        #register .field-action {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 4px;
        }

        #register .field-action label {
            margin-bottom: 0;
        }

        #register .field-action button {
            border: none;
            background: none;
            color: var(--blue);
            font-size: 13px;
            font-weight: 600;
            padding: 0;
            cursor: pointer;
        }

        #register .field-action button:disabled {
            color: #9aa3c7;
            cursor: not-allowed;
        }

        @media (max-width: 992px) {
            body {
                justify-content: center;
                padding: 32px 20px;
                background-position: center top;
                background-size: cover;
            }

            body::before {
                background: rgba(238, 243, 248, 0.34);
            }

            .login-container {
                max-width: 560px;
            }
        }

        @media (max-width: 768px) {
            body {
                min-height: 100dvh;
                padding: 138px 14px 20px;
                align-items: flex-start;
            }

            .login-brand {
                top: 18px;
                left: 18px;
                width: 88px;
                height: 88px;
            }

            .login-container {
                max-width: none;
                border-radius: 18px;
            }

            .remember-forgot {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .tab-container {
                display: flex;
            }

            .tab-button {
                flex: 1 1 0;
                padding-left: 12px;
                padding-right: 12px;
            }
        }

        @media (max-width: 576px) {
            body {
                padding: 126px 12px 12px;
            }

            .login-container {
                padding: 22px 18px;
                margin: 0;
                box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
            }

            .login-header {
                margin-bottom: 20px;
            }

            .tab-container {
                margin-bottom: 22px;
            }

            #register .form-row {
                flex-direction: column;
                gap: 10px;
            }

            .form-group input,
            .login-btn {
                font-size: 16px;
            }

            #register .field-action {
                align-items: flex-start;
                flex-direction: column;
            }
        }


.password-field {
    position: relative;
}

