* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fb;
    font-family: "Segoe UI", sans-serif;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
}

.auth-left {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #0d4d8b, #153b70);
    color: white;
    overflow: hidden;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(255, 255, 255, 0.15),
        transparent 40%
    );
}

.left-content {
    position: relative;
    z-index: 2;
    padding: 70px;
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 25px;
}

.left-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
}

.left-content p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 17px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 20px;
}

.stat-card h3 {
    margin-bottom: 8px;
}

.auth-right {
    width: 550px;
    background: white;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 40px;
}

.form-container {
    width: 100%;
}

.form-container h2 {
    font-size: 36px;
    color: #222;
}

.subtitle {
    color: #666;
    margin-top: 10px;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 55px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0d4d8b;
    box-shadow: 0 0 0 4px rgba(13, 77, 139, 0.12);
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.forgot-link {
    text-decoration: none;
    color: #0d4d8b;
    font-weight: 600;
}

.captcha-box {
    height: 70px;
    border: 2px dashed #cfd6e3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-bottom: 25px;
}

.login-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: #0d4d8b;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

.signup-link a {
    color: #0d4d8b;
    font-weight: 700;
    text-decoration: none;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fdeaea;
    color: #b42318;
}

.alert-success {
    background: #e9f9ef;
    color: #027a48;
}

.error {
    color: red;
    display: block;
    margin-top: 5px;
}

@media (max-width: 992px) {
    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
    }
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.captcha-container img {
    height: 55px;
    border-radius: 10px;
    border: 1px solid #d9dee7;
}

.captcha-refresh {
    width: 55px;
    height: 55px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    background: #fff;
    color: #0d4d8b;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.25s ease;
}

.captcha-refresh:hover {
    background: #0d4d8b;
    color: #fff;
    transform: rotate(180deg);
    box-shadow: 0 8px 20px rgba(13, 77, 139, 0.2);
}

.captcha-refresh i {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    transition: 0.2s;
}

.toggle-password:hover {
    color: #1f2937;
}
