﻿/* ===== REGISTER PAGE FIXED ===== */

.register-container {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 40px 15px;
}

.register-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 50px;
}

/* Header */
.register-header {
    text-align: center;
    margin-bottom: 40px;
}

    .register-header .icon {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .register-header h2 {
        font-weight: 700;
        color: #333;
    }

    .register-header p {
        color: #666;
        font-size: 0.95rem;
    }

/* ===== FORM ===== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* QUAN TRỌNG: fix bo tròn */
.form-control {
    width: 100%;
    height: 50px;
    border-radius: 12px !important;
    border: 2px solid #e0e0e0;
    padding: 0 45px 0 16px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .form-control:focus {
        border-color: #D62300;
        box-shadow: 0 0 0 0.15rem rgba(214, 35, 0, 0.15);
        outline: none;
    }

/* Textarea */
textarea.form-control {
    min-height: 90px;
    padding: 12px 16px;
    resize: vertical;
}

/* ===== INPUT ICON ===== */

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 1.1rem;
}

/* ===== PASSWORD STRENGTH ===== */

.password-strength {
    height: 6px;
    border-radius: 6px;
    background: #e0e0e0;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

    .password-strength-bar.weak {
        width: 33%;
        background: #dc3545;
    }

    .password-strength-bar.medium {
        width: 66%;
        background: #ffc107;
    }

    .password-strength-bar.strong {
        width: 100%;
        background: #28a745;
    }

/* ===== BUTTON ===== */

.btn-register {
    width: 100%;
    height: 50px;
    margin-top: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #D62300 0%, #F5A623 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(214, 35, 0, 0.35);
    }

/* ===== LOGIN LINK ===== */

.login-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

    .login-link a {
        color: #D62300;
        font-weight: 600;
        text-decoration: none;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

/* ===== ALERT ===== */

.alert {
    border-radius: 12px;
    padding: 15px 20px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 576px) {
    .register-card {
        padding: 30px 20px;
    }
}
