/* Login Page Stylesheet */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #ef4444;
    --accent-color: #f59e0b;
    --background-color: #cecece;
    --text-color: #111827;
    --menu-color: rgb(1, 25, 70);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

section{
    cursor: pointer;
}

option{
    cursor: pointer;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--background-color);
    padding: 20px;
}

.login-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.login-header {
    background-color: var(--menu-color);
    color: white;
    padding: 25px;
    text-align: center;
}

.login-header h1 {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

.logo-container{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.school-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.school-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    object-position: bottom;
}

.school-logo2{
    display: flex !important;
    flex-direction: column;
    width: 130px;
    height: 43px;
}

.school-logo2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.school-logo2 h1 {
    font-size: smaller;
    margin-top: 0px;
    font-weight: 500;
}

.login-form {
    padding: 25px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    /*border-radius: 8px;*/
    font-size: 16px;
    transition: border 0.3s;
}

.input-with-icon input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.user-type {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.user-type label {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.user-type input[type="radio"] {
    display: none;
}

.user-type input[type="radio"]:checked + span {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.user-type span {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    margin-right: 5px;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #2980b9;
}

.login-footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #7f8c8d;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;
}

.login-footer a:hover {
    text-decoration: underline;
}

.message-container{
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: white;
}

.error1{
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success1{
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        border-radius: 10px;
    }
    
    .login-header {
        padding: 20px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .user-type label {
        flex: 100%;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}