/* ===== Root Colors ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #00bfff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ===== Body Style ===== */
body {
    background: var(--gradient);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ===== Register Card ===== */
.register-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #ffffff;
    animation: fadeIn 0.8s ease-in-out;
}

/* ===== Header ===== */
.register-header {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
}

.register-header i {
    color: white;
}

.register-header h3 {
    font-weight: 700;
    margin-top: 10px;
}

/* ===== Form Style ===== */
.form-label {
    color: #333;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

.input-group-text {
    background-color: transparent;
    border-left: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

.toggle-password {
    background: #fff;
    border-left: none;
    transition: background 0.3s ease;
}

.toggle-password:hover {
    background: #f1f1f1;
}

/* ===== Password Strength Indicator ===== */
.password-strength {
    height: 6px;
    border-radius: 4px;
    margin-top: 5px;
    transition: width 0.4s ease;
}

.password-strength.weak {
    width: 33%;
    background: #ff4d4d;
}

.password-strength.medium {
    width: 66%;
    background: #ffcc00;
}

.password-strength.strong {
    width: 100%;
    background: #28a745;
}

/* ===== Button Style ===== */
.btn-register {
    border-radius: 10px;
    background: var(--gradient);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-register:hover {
    background: linear-gradient(135deg, #0069d9, #0091ea);
    transform: scale(1.03);
}

/* ===== Login Link ===== */
.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .register-card {
        margin-top: 30px;
    }

    .register-header {
        padding: 25px 15px;
    }
}

/* ===== Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
