﻿﻿﻿﻿﻿﻿﻿/* CSS Reset */
* {
    box-sizing: border-box !important;
}

html body.custom-login-page {
    margin: 0 !important;
    padding: 0 !important;
    background-image: url('../images/login-background.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    overflow: hidden !important;
    height: 100vh !important;
    background-color: unset !important;
}

html {
    height: 100%;
    overflow: hidden;
}

/* Main container styling */
.custom-login-page .main-container,
.main-container {
    background: transparent;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    padding-top: 15vh;
}

/* Main title styling - now used for logo */
.custom-login-page .main-title,
.main-title {
    color: #6f42c1;
    font-size: 7rem;
    margin-bottom:10rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

/* Main logo styling */
.main-logo {
    max-width: 515px;
    height: auto;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Custom button styling */
.btn-custom {
    width: 200px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    animation: slideIn 0.6s ease-out;
}

/* Student Button */
.custom-login-page .btn-student,
.btn-student {
    background: #21a7ff;
    border: none;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 197, 229, 0.3);
    width: 200px;
    padding: 12px 30px;
    border-radius: 25px;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 600;
}

    .btn-student:hover {
        background: #21a7ff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(30, 197, 229, 0.4);
        color: white;
    }

/* Teacher Button */
.custom-login-page .btn-teacher,
.btn-teacher {
    background: linear-gradient(135deg, #5cb85c, #28a745);
    border: none;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(92, 184, 92, 0.3);
    width: 200px;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.btn-teacher:hover {
    background: linear-gradient(135deg, #28a745, #218838);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 184, 92, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .main-logo {
        max-width: 200px;
        margin-bottom: 6rem;
    }
    
    .btn-custom {
        width: 180px;
        font-size: 1.1rem;
        padding: 10px 25px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .main-logo {
        max-width: 150px;
        margin-bottom: 5rem;
    }
    
    .btn-custom {
        width: 160px;
        font-size: 1rem;
        padding: 8px 20px;
    }
}

@media (max-width: 400px) {
    .main-title {
        font-size: 2rem;
    }
    
    .main-logo {
        max-width: 120px;
    }
    
    .btn-custom {
        width: 140px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Login and Signup Form Styling */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.login-title {
    color: #6f42c1;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 12px 15px;
}

.form-control:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.gap-3 {
    gap: 1rem;
}
