/* LOGIN PAGE STYLES */

:root {
    --ptu-maroon: #ce0909;
    --ptu-dark-gray: #333333;
    --ptu-light-gray: #f4f4f4;
    --border-color: #dddddd;
    --text-color: #444444;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    gap: 0;
}

/* CAROUSEL SECTION */
.carousel-section {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.fade {
    animation: fade 1s ease-in-out;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide.active {
    display: block;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
}

.carousel-caption h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Carousel Controls */
.carousel-prev,
.carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-next {
    right: 0;
}

.carousel-prev {
    left: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Carousel Dots */
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* SIGN-IN SECTION */
.signin-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: white;
}

.signin-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.signin-header {
    background: linear-gradient(135deg, var(--ptu-maroon) 0%, #a00707 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.signin-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.signin-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.signin-header h2 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.95;
}

.signin-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.signin-content {
    padding: 40px 30px;
}

.signin-content h3 {
    color: var(--ptu-maroon);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.signin-description {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Google Sign-In Button */
.signin-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* The Button Container */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 20px; /* Gives it that pill shape */
    padding: 8px 16px;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.google-signin-btn:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
}

/* The Logo */
.google-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px; /* Space between logo and text */
}
.google-signin-btn:active {
    background-color: #f1f3f4;
}

.google-signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.loading-spinner.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--ptu-maroon);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Messages */
.error-message,
.success-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.error-message.hidden,
.success-message.hidden {
    display: none;
}

/* Sign-In Footer */
.signin-footer {
    background: #f9f9f9;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.signin-footer p {
    font-size: 0.8rem;
    color: #666;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .carousel-section {
        height: 40vh;
        min-height: 300px;
    }

    .signin-section {
        height: 60vh;
        padding: 20px;
    }

    .signin-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .carousel-section {
        height: 35vh;
    }

    .signin-section {
        height: 65vh;
        padding: 15px;
    }

    .signin-header {
        padding: 30px 20px;
    }

    .signin-logo {
        width: 50px;
        height: 50px;
    }

    .signin-header h1 {
        font-size: 1.5rem;
    }

    .signin-header h2 {
        font-size: 0.95rem;
    }

    .signin-content {
        padding: 25px 20px;
    }

    .signin-content h3 {
        font-size: 1.3rem;
    }

    .signin-description {
        font-size: 0.85rem;
    }

    .carousel-prev,
    .carousel-next {
        padding: 12px;
        font-size: 16px;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        height: 30vh;
        min-height: 200px;
    }

    .signin-section {
        height: 70vh;
        padding: 10px;
    }

    .signin-card {
        box-shadow: none;
        border-radius: 0;
    }

    .signin-header {
        padding: 25px 15px;
    }

    .signin-logo {
        width: 40px;
        height: 40px;
    }

    .signin-header h1 {
        font-size: 1.2rem;
    }

    .signin-header h2 {
        font-size: 0.85rem;
    }

    .signin-content {
        padding: 20px 15px;
    }

    .signin-content h3 {
        font-size: 1.1rem;
    }

    .signin-description {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .signin-footer {
        padding: 15px 10px;
    }

    .signin-footer p {
        font-size: 0.75rem;
    }

    .carousel-dots .dot {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
}

/* Accessibility */
.google-signin-btn:focus {
    outline: 2px solid var(--ptu-maroon);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .login-container {
        display: none;
    }
}
