/*
   Innovative Centre - Login Page Stylesheet
   Version: 1.0
*/

/* ===== LOGIN SECTION ===== */
.login-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/6.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    padding-top: 120px;
    padding-bottom: 80px;
}

.login-content {
    text-align: center;
    max-width: 1000px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.login-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

/* ===== LOGIN OPTIONS ===== */
.login-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
    max-width: 1000px; /* give a little more room for symmetry */
    margin-left: auto;
    margin-right: auto;
    align-items: stretch; /* ensure equal card heights */
}

/* Ensure centered on all screens */
.login-options {
    transform: none;
}

/* Shift the two cards 5% right and 10% lower on desktop */
@media (min-width: 992px) {
    .login-options {
        /* Move 10% right and 10% down */
        transform: translate(10%, 10%);
    }
}

.login-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.login-card:hover::before {
    transform: scaleX(1);
}

.login-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Card Image */
.card-image {
    width: 100%;
    /* Use responsive aspect ratio so images scale evenly */
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.login-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Body */
.card-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

/* Staff Card */
.staff-card::before {
    background: var(--gradient-primary);
}

/* Student Card */
.student-card::before {
    background: var(--gradient-accent);
}

.student-card.coming-soon {
    cursor: not-allowed;
    opacity: 0.85;
}

.student-card.coming-soon:hover {
    transform: translateY(-5px);
}

.student-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

/* Card Icon - Remove old icon styles */
.card-icon {
    display: none;
}

/* Card Content */
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Card Arrow */
.card-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.25);
}

.card-arrow i {
    color: var(--text-white);
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

/* Subtle interaction on hover */
.login-card:hover .card-arrow {
    background: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(0, 86, 179, 0.35);
    transform: translateX(6px);
}

.login-card:hover .card-arrow i {
    transform: translateX(2px);
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
    box-shadow: var(--shadow);
}

.coming-soon-badge i {
    font-size: 1rem;
}

/* ===== BACK LINK ===== */
.back-link {
    margin-top: 2rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.back-link a i {
    transition: var(--transition);
}

.back-link a:hover i {
    transform: translateX(-3px);
}

/* ===== FOOTER ===== */
.login-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .login-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .login-title {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .login-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-image {
        height: 200px;
    }

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

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding-top: 80px;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .card-image {
        height: 180px;
    }

    .card-body {
        padding: 1.25rem 0.75rem;
    }

    .coming-soon-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .card-arrow {
        width: 40px;
        height: 40px;
    }

    .card-arrow i {
        font-size: 1rem;
    }
}
