/* Theme Colors */
:root {
    --auth-accent: #2980b9;
    --auth-accent-hover: #2471a3;
}

/* Admin Theme */
.auth-admin {
    --auth-accent: #c23616;
    --auth-accent-hover: #a12d12;
}

/* Quicksand Font - Local */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/Quicksand-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Quicksand-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Quicksand-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Quicksand-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Quicksand-Bold.ttf') format('truetype');
}

html {
    scrollbar-gutter: auto !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Quicksand', sans-serif !important;
    overflow: hidden;
}

.auth-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
    background: #000;
    padding-bottom: 15%;
    box-sizing: border-box;
}

.auth-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#000, var(--auth-accent), #000);
    animation: auth-animate 5s linear infinite;
}

@keyframes auth-animate {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.auth-section .grid-tile {
    position: relative;
    display: block;
    width: calc(6.25vw - 2px);
    height: calc(6.25vw - 2px);
    background: #181818;
    z-index: 2;
    transition: 1.5s;
}

.auth-section .grid-tile:hover {
    background: var(--auth-accent);
    transition: 0s;
}

.auth-box {
    position: absolute;
    top: 60px;
    width: 386px;
    max-width: 90%;
    background: #222;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 34px;
    border-radius: 4px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
}

.auth-box .auth-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.auth-box .auth-content.text-center {
    text-align: center;
    gap: 18px;
}

.auth-box .auth-content h2 {
    font-size: 2em;
    color: var(--auth-accent);
    text-transform: uppercase;
    margin: 0;
}

.auth-box .auth-content p {
    color: #aaa;
    margin: 0;
    line-height: 1.6;
}

.auth-box .auth-content p strong {
    color: #fff;
}

.auth-box .auth-content .description {
    color: #aaa;
    text-align: center;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

/* Icons */
.auth-box .icon-success {
    color: #27ae60;
}

.auth-box .icon-error {
    color: #e74c3c;
}

/* Form styles */
.auth-box .auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-box .auth-form .inputBox {
    position: relative;
    width: 100%;
}

.auth-box .auth-form .inputBox input {
    position: relative;
    width: 100%;
    background: #333;
    border: none;
    outline: none;
    padding: 25px 10px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    font-size: 1em;
    box-sizing: border-box;
}

.auth-box .auth-form .inputBox i {
    position: absolute;
    left: 0;
    padding: 15px 10px;
    font-style: normal;
    color: #aaa;
    transition: 0.5s;
    pointer-events: none;
}

.auth-box .auth-form .inputBox input:focus ~ i,
.auth-box .auth-form .inputBox input:required:valid ~ i,
.auth-box .auth-form .inputBox input.has-value ~ i,
.auth-box .auth-form .inputBox input:not(:placeholder-shown) ~ i {
    transform: translateY(-7px);
    font-size: 0.8em;
    color: #fff;
}

.auth-box .auth-form .inputBox .error-msg {
    color: #e74c3c;
    font-size: 0.8em;
    margin-top: 4px;
}

.auth-box .auth-form .inputBox input.is-invalid {
    border: 1px solid #e74c3c;
}

.auth-box .auth-form .links {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.auth-box .auth-form .links a {
    color: #fff;
    text-decoration: none;
}

.auth-box .auth-form .links a:nth-child(2) {
    color: var(--auth-accent);
    font-weight: 600;
}

.auth-box .auth-form .inputBox input[type="submit"] {
    padding: 14px;
    background: var(--auth-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1.35em;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.auth-box .auth-form .inputBox input[type="submit"]:active {
    opacity: 0.6;
}

/* Alerts */
.auth-box .auth-alert {
    width: 100%;
    border-radius: 4px;
    margin: 0;
    padding: 14px 18px;
    font-size: 1em;
    line-height: 1.5;
    text-align: center;
    border: none;
}

.auth-box .auth-alert.alert-success {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.auth-box .auth-alert.alert-danger,
.auth-box .alert.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 6px 10px !important;
    font-size: 0.85em !important;
}

.auth-box .auth-alert.alert-warning {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
    text-align: left;
}

/* Buttons */
.auth-box .btn-primary {
    display: inline-block;
    padding: 14px 26px;
    background: var(--auth-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
}

.auth-box .btn-primary:hover {
    opacity: 0.8;
    color: #fff;
}

.auth-box .btn-primary.btn-block {
    width: 100%;
    box-sizing: border-box;
}

/* Footer links */
.auth-box .auth-footer {
    color: #6C6C6C;
    font-size: 14px;
}

.auth-box .auth-footer a {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-box .auth-footer a:hover {
    color: #fff;
}

/* Divider */
.auth-box .divider {
    width: 100%;
    height: 1px;
    background: #333;
    margin: 10px 0;
}

/* Small text */
.auth-box .small-text {
    font-size: 0.85em;
    color: #666;
}

.auth-box .small-text a {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-box .small-text a:hover {
    color: #fff;
}

/* Resend button */
.auth-box .resend-btn {
    background: none;
    border: none;
    color: var(--auth-accent);
    padding: 0;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.auth-box .resend-btn:hover {
    color: #fff;
}

/* Timetable Section */
.auth-section.timetable-section {
    padding-bottom: 5%;
}

.auth-section.timetable-section .timetable-box {
    width: auto;
    max-width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
    top: 44px;
}

.auth-section.timetable-section .timetable-box .auth-content {
    width: 100%;
}

.auth-section.timetable-section .body_wrapper.mt-4 {
    margin-top: 0 !important;
}

.auth-section.timetable-section .card {
    background: #333;
    border: none;
}

.auth-section.timetable-section .card-header {
    background: #444;
    color: #fff;
    border-bottom: 1px solid #555;
}

.auth-section.timetable-section .list-group-item {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.auth-section.timetable-section .text-muted {
    color: #aaa !important;
}

.auth-section.timetable-section .badge {
    font-weight: 500;
}

.auth-section.timetable-section .btn-outline-primary {
    color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-section.timetable-section .btn-outline-primary:hover {
    background: var(--auth-accent);
    color: #fff;
}

.auth-section.timetable-section .btn-outline-secondary {
    color: #aaa;
    border-color: #666;
}

.auth-section.timetable-section .btn-outline-secondary:hover {
    background: #666;
    color: #fff;
}

.auth-section.timetable-section .alert-info {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.auth-section.timetable-section small {
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-section .grid-tile {
        width: calc(10vw - 2px);
        height: calc(10vw - 2px);
    }
}

@media (max-width: 600px) {
    .auth-section .grid-tile {
        width: calc(20vw - 2px);
        height: calc(20vw - 2px);
    }
    .auth-box {
        padding: 26px 18px;
    }
}
