/* =================== IMPORT FONT =================== */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;500;600;700&display=swap');

/* =================== GLOBAL STYLING =================== */
html, body {
    height: 100%;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

.container-fluid {
    height: 100%;
}

/* =================== BACKGROUND IMAGE (Right Column) =================== */
.register-bg {
    background-image: linear-gradient(rgba(27, 25, 135, 0.7), rgba(47, 15, 231, 0.8)), 
                      url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* =================== CARD STYLING =================== */
.card {
    border-radius: 1rem !important;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 1rem 1rem;
}

/* =================== LOGO CONTAINER =================== */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.logo-container img {
    max-width: 80px;
    height: auto;
    object-fit: contain;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== PASSWORD TOGGLE =================== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper .form-control {
    padding-right: 38px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.95rem;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: #0066cc;
}

.toggle-password:focus {
    outline: none;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(52, 36, 226, 0.25);
    background-color: #f0f4ff;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    display: block;
}

/* =================== BUTTON STYLING =================== */
.btn-success {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background-color: #0066cc;
    border-color: #0066cc;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-success:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline-secondary {
    border: 1px solid #ddd;
    color: #000;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: white;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #0066cc;
    color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

/* =================== TEXT STYLING =================== */
.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.text-muted {
    font-size: 0.95rem;
    color: #6b7280;
}

.text-center.small {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.text-center.small a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-center.small a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* =================== ALERT STYLING =================== */
.alert {
    border-radius: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    border: none;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin: 5px 0;
}

/* =================== SPACING UTILITIES =================== */
.mb-3 {
    margin-bottom: 0.8rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

/* =================== LEFT COLUMN STYLING =================== */
.left-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.left-column > div {
    width: 100%;
    max-width: 450px;
}

/* =================== H1 STYLING (Right Column) =================== */
.register-bg h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.register-bg .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 992px) {
    .left-column {
        padding: 15px;
    }

    .left-column > div {
        max-width: 100%;
    }

    .card-body {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .left-column {
        min-height: auto;
        padding: 20px 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-success,
    .btn-outline-secondary {
        padding: 0.65rem;
        font-size: 0.95rem;
    }

    .register-bg h1 {
        font-size: 2rem;
    }

    .register-bg .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .card {
        border-radius: 0.75rem !important;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }

    .register-bg h1 {
        font-size: 1.7rem;
    }

    .register-bg .lead {
        font-size: 0.95rem;
    }

    .logo-container img {
        max-width: 70px;
    }
}