/* Login Page Styles */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.card-container {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 600px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.main-container {
    display: contents;
}

/* Left Section - Branding */
.left-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../elements/School-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(112, 2, 2, 0.5) 0%,
        rgba(139, 0, 0, 0.5) 50%,
        rgba(190, 93, 93, 0.5) 100%
    );
    z-index: 1;
}

.left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: white;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-container img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.ypads-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.ypads-letters {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.ypads-subtitle {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
}

.university-text {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 3;
}

/* Right Section - Login Interface */
.right-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../elements/textured-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 600px;
    padding: 60px 40px;
    overflow: hidden;
}

.right-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: url('../elements/transparent-honey-combl.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.right-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background-image: url('../elements/transparent-honey-combl.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.right-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    width: 100%;
}

.icon-container {
    margin-bottom: 30px;
}

.icon-container img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.welcome-text {
    font-size: 42px;
    font-weight: 700;
    color: #5a2d2d;
    margin-bottom: 50px;
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.btn {
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-login {
    background-color: #8b0000;
    color: white;
}

.btn-login:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.3);
}

.btn-signup {
    background-color: white;
    color: #8b0000;
    border: 2px solid #8b0000;
}

.btn-signup:hover {
    background-color: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.2);
}

.guest-link {
    text-align: center;
    margin-top: 20px;
}

.guest-link a {
    color: #8b0000;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s;
}

.guest-link a:hover {
    color: #a00000;
}

/* Login Form View Styles */
.welcome-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-form-view {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-form-view.active {
    display: flex;
}

.welcome-view.hidden {
    display: none;
}

.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.exit-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    color: #333;
}

.exit-icon:hover {
    opacity: 1;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.active {
    background-color: #5a2d2d;
    color: white;
}

.nav-btn.inactive {
    background-color: #e0e0e0;
    color: #666;
}

.nav-btn.inactive:hover {
    background-color: #d0d0d0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
}

.forgot-password a {
    color: #8b0000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #a00000;
    text-decoration: underline;
}

.btn-login-submit {
    width: 100%;
    padding: 16px;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.btn-login-submit:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.3);
}

.btn-login-submit:active {
    transform: translateY(0);
}

/* Signup Form View Styles */
.signup-form-view {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.signup-form-view.active {
    display: flex;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-signup-submit {
    width: 100%;
    padding: 16px;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.btn-signup-submit:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.3);
}

.btn-signup-submit:active {
    transform: translateY(0);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    width: 84px;
    aspect-ratio: 1;
    background:
        linear-gradient(#ff4500 0 0) left/50% 100% no-repeat,
        conic-gradient(
            from -90deg at 32px 9.47px,
            #fff8dc 135deg,
            #8b0000 0 270deg,
            #ffa500 0
        );
    background-blend-mode: multiply;
    -webkit-mask: linear-gradient(
            to bottom right,
            #0000 8px,
            #000 0 52px,
            #0000 0
        ),
        conic-gradient(from -90deg at right 6px bottom 6px, #000 90deg, #0000 0);
    mask: linear-gradient(to bottom right, #0000 8px, #000 0 52px, #0000 0),
        conic-gradient(from -90deg at right 6px bottom 6px, #000 90deg, #0000 0);
    background-size: 50% 50%;
    -webkit-mask-size: 50% 50%;
    mask-size: 50% 50%;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    animation: l9 1.8s infinite cubic-bezier(0.5, 0.2, 0.5, 1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    transform: perspective(1000px) rotateY(15deg);
}

@keyframes l9 {
    0% {
        background-position:
            0% 0%,
            0 0;
        transform: perspective(1000px) rotateY(15deg) scale(1);
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    }
    25% {
        background-position:
            100% 0%,
            0 0;
    }
    50% {
        background-position:
            100% 100%,
            0 0;
        transform: perspective(1000px) rotateY(15deg) scale(1.08);
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    }
    75% {
        background-position:
            0% 100%,
            0 0;
    }
    100% {
        background-position:
            0% 0%,
            0 0;
        transform: perspective(1000px) rotateY(15deg) scale(1);
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .card-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .left-section {
        min-height: 300px;
    }

    .right-section {
        min-height: 500px;
    }

    .ypads-letters {
        font-size: 36px;
        letter-spacing: 6px;
    }

    .ypads-subtitle {
        font-size: 20px;
    }

    .welcome-text {
        font-size: 36px;
    }

    .right-section {
        padding: 30px 30px;
    }
}

@media (max-width: 480px) {
    .left-content {
        padding: 20px;
    }

    .logo-container img {
        width: 150px;
        height: 150px;
    }

    .ypads-letters {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .ypads-subtitle {
        font-size: 16px;
    }

    .right-content {
        padding: 20px;
    }

    .welcome-text {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .action-buttons {
        gap: 15px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }

    .right-section {
        padding: 20px 25px;
    }

    .top-nav {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .nav-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    .welcome-text {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .top-nav {
        margin-bottom: 30px;
    }

    .name-row {
        grid-template-columns: 1fr;
    }
}

/* Forgot Password Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #5a2d2d;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #8b0000;
}

.modal-step {
    padding: 30px;
}

.modal-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.modal-step .form-group {
    margin-bottom: 20px;
}

.modal-step .form-group:last-of-type {
    margin-bottom: 25px;
}

.btn-modal-submit {
    width: 100%;
    padding: 16px;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.btn-modal-submit:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.3);
}

.btn-modal-submit:active {
    transform: translateY(0);
}

.btn-modal-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.otp-resend {
    text-align: center;
    margin: 15px 0 20px;
}

.otp-resend p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.otp-resend a {
    color: #8b0000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.otp-resend a:hover {
    color: #a00000;
    text-decoration: underline;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #28a745;
    margin: 0 auto 20px;
    display: block;
}

.success-message h3 {
    font-size: 22px;
    font-weight: 700;
    color: #5a2d2d;
    margin: 0 0 15px;
}

.success-message p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Modal Responsive Design */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: none;
        border-radius: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-step {
        padding: 20px;
    }

    .modal-description {
        font-size: 13px;
    }
}

