/* ===================================
   Authentication Pages Styles
   Primary: #02508C (Blue)
   Secondary: #F2AB1F (Yellow)
=================================== */

:root {
    --color-primary: #02508C;
    --color-primary-dark: #013a65;
    --color-primary-light: #0367b8;
    --color-secondary: #F2AB1F;
    --color-secondary-dark: #d99410;
    --elevation-1: 0 2px 8px rgba(0, 0, 0, 0.1);
    --elevation-2: 0 8px 24px rgba(0, 0, 0, 0.15);
    --elevation-3: 0 16px 48px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===================================
   Animated background shapes
=================================== */
.shape {
    position: fixed;
    opacity: 0.06;
    animation: float 25s infinite ease-in-out;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    bottom: -50px;
    right: 100px;
    animation-delay: 8s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--color-secondary);
    border-radius: 50%;
    top: 40%;
    right: -75px;
    animation-delay: 15s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) translateX(15px) rotate(90deg);
    }

    50% {
        transform: translateY(-40px) translateX(-15px) rotate(180deg);
    }

    75% {
        transform: translateY(-20px) translateX(15px) rotate(270deg);
    }
}

/* ===================================
   Auth Container
=================================== */
.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    box-shadow: var(--elevation-3);
    border-radius: 16px;
    overflow: hidden;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-header p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    font-size: 1.1rem;
}

.auth-header .icon {
    font-size: 2.5rem;
    margin-right: 0.5rem;
    color: var(--color-secondary);
    filter: drop-shadow(0 4px 8px rgba(242, 171, 31, 0.3));
}

.card-body {
    padding: 2.5rem;
}

/* ===================================
   Form Elements
=================================== */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(2, 80, 140, 0.15);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #aaa;
}

/* ===================================
   Buttons
=================================== */
.btn {
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    box-shadow: var(--elevation-1);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #012847 100%);
    box-shadow: var(--elevation-2);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* ===================================
   Form Check (Checkbox/Radio)
=================================== */
.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(2, 80, 140, 0.15);
}

.form-check-label {
    font-weight: 400;
    color: #555;
}

/* ===================================
   Footer & Additional Elements
=================================== */
.footer-text {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    font-size: 0.9rem;
}

.divider-text {
    text-align: center;
    margin: 1.5rem 0;
    color: #666;
    font-weight: 400;
}

.link-text {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-text:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 768px) {
    .auth-header h2 {
        font-size: 1.75rem;
    }

    .auth-header p {
        font-size: 1rem;
    }

    .auth-header .icon {
        font-size: 2rem;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .auth-container {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.75rem 1.25rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}