:root {
    --primary: #6777ef;
    --primary-light: rgba(103, 119, 239, 0.1);
    --primary-lighter: rgba(103, 119, 239, 0.05);
    --secondary: #cdd3d8;
    --success: #47c363;
    --info: #3abaf4;
    --warning: #ffa426;
    --danger: #fc544b;
    --dark: #191d21;
    --light: #e3eaef;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --gray-lighter: #f1f3f6;
    --gray-dark: #343a40;
    --text-color: #34395e;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

             body {
                 font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
                     background-color: var(--gray-lighter);
                         color: var(--text-color);
                             line-height: 1.6;
                                 height: 100vh;
                                     display: flex;
                                         justify-content: center;
                                             align-items: center;
                                                 padding: 20px;
                                                     -webkit-tap-highlight-color: transparent;
                                                     }

/* Background Animation */
.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.login-logo{
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}
.responsive {
  max-width: 50%;
  height: auto;
}
@media (max-width: 576px) {
    .login-logo {
        width: 100px;
        height: 100px;
    }
}
.login-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
    opacity: 0.5;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
}

.bg-circle-4 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: 10%;
}

/* Login Card */
.login-card {
    width: 100%;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-header {
    padding: 30px 30px 20px;
    text-align: center;
    background-color: var(--white);
}

.school-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(103, 119, 239, 0.2);
}

.school-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.card-header p {
    font-size: 14px;
    color: var(--gray);
}

.card-body {
    padding: 0 30px 30px;
}

/* Credential Cards */
.credential-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.credential-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.credential-card .card-icon {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(103, 119, 239, 0.3);
}

.credential-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-top: 10px;
    color: var(--dark);
}

.school-credentials {
    background-color: var(--primary-lighter);
    border-color: var(--primary-light);
}

.user-credentials {
    background-color: var(--gray-lighter);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-dark);
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.input-group-prepend {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray);
    text-align: center;
    white-space: nowrap;
    background-color: var(--gray-light);
    border: 1px solid var(--border-color);
    border-right: none;
}

.form-control {
    display: block;
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    appearance: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(103, 119, 239, 0.2);
    z-index: 1;
}

.input-group-append {
    display: flex;
    margin-left: -1px;
}

.toggle-password {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray);
    text-align: center;
    white-space: nowrap;
    background-color: var(--gray-light);
    border: 1px solid var(--border-color);
    border-left: none;
    cursor: pointer;
}

.toggle-password:hover {
    background-color: #e2e6ea;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.col {
    flex: 1;
    padding: 0 5px;
}

.form-check {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-right: 0.5em;
    vertical-align: top;
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--border-color);
    appearance: none;
    color-adjust: exact;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 14px;
    color: var(--gray);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
    color: #5567d5;
}

/* Login Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(103, 119, 239, 0.3);
}

.btn-primary:hover {
    background-color: #5567d5;
    border-color: #4f60ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(103, 119, 239, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(103, 119, 239, 0.3);
}

.btn-outline-secondary {
    color: var(--gray);
    background-color: transparent;
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--gray-light);
}

/* Social Login */
.social-login {
    margin-top: 25px;
    text-align: center;
}

.divider {
    position: relative;
    margin: 20px 0;
    color: var(--gray);
    font-size: 14px;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    background-color: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.google-logo {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Card Footer */
.card-footer {
    padding: 20px 30px;
    text-align: center;
    background-color: var(--gray-lighter);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--gray);
}

.contact-admin {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-admin:hover {
    text-decoration: underline;
    color: #5567d5;
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 100;
    transform: translateY(150%);
    transition: var(--transition);
}

.install-banner.show {
    transform: translateY(0);
}

.install-content {
    display: flex;
    align-items: center;
}

.install-content i {
    font-size: 20px;
    margin-right: 12px;
    color: var(--primary);
}

.install-content span {
    font-size: 14px;
}

.install-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.install-button:hover {
    background-color: #5567d5;
}

.install-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 18px;
    margin-left: 12px;
    cursor: pointer;
}

/* Offline Alert */
.offline-alert {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--warning);
    color: white;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 100;
    transform: translateY(-150%);
    transition: var(--transition);
}

.offline-alert.show {
    transform: translateY(0);
}

.offline-alert i {
    margin-right: 8px;
}

.offline-alert span {
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    body {
        padding: 10px;
        background-color: var(--white);
    }
    
    .login-card {
        border-radius: 8px;
        box-shadow: none;
    }
    
    .card-header {
        padding: 25px 20px 15px;
    }
    
    .school-logo {
        width: 70px;
        height: 70px;
    }
    
    .card-header h2 {
        font-size: 20px;
    }
    
    .card-body {
        padding: 0 20px 20px;
    }
    
    .credential-card {
        padding: 15px;
    }
    
    .install-banner, .offline-alert {
        left: 10px;
        right: 10px;
    }
}