﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(252, 235, 238, 0.3);
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    padding: 40px;
    margin-bottom: -150px;
}


.login-container {
    margin-top: 60px;
    position: relative;
    width: 600px;
    height: 60vh;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    top: -80px;
    z-index: 1;
}

    .login-container .form-container {
        position: absolute;
        top: 0;
        height: 100%;
        width: 50%;
        transition: all 0.6s ease-in-out;
    }

.sign-in-container {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    z-index: 2;
    width: 100%;
}

.sign-up-container h1 {
    padding: 10px;
    margin: 0;
    
}

.sign-up-container input{
    padding: 0;
    margin: 0;
    height: 40px;

}

.login-container .sign-up-container {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.login-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

.login-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.login-container form {
    background: #fff;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-container input {
    background: #fff;
    border: 2px solid #760e26;
    padding: 13px 20px;
    margin: 10px auto 10px auto;
    align-content: center;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .login-container input:hover,
    .login-container input:focus {
        box-shadow: 0 0 8px #760e26;
        outline: none;
    }

    .login-container input::placeholder {
        color: #760e26;
        font-weight: 400;
    }

.login-container button {
    border-radius: 8px;
    border: 2px solid #760e26;
    background-color: #fff;
    color: #760e26;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 65px;
    box-shadow: 0 0 10px rgba(128, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

    .login-container button:hover {
        box-shadow: 0 0 15px rgba(128, 0, 0, 0.5);
    }

.login-container a {
    color: #760e26;
    font-size: 14px;
    text-decoration: none;
    margin: 34px 0;
}

    .login-container a:hover {
        text-decoration: underline;
    }

.login-container .overlay-container {
    position: absolute;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.login-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.login-container .overlay {
    background: #760e26;
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.login-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.login-container .overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 40px;
    text-align: center;
    top: 0;
    width: 50%;
    transition: transform 0.6s ease-in-out;
    color: #fff;
}

.login-container .overlay-left {
    transform: translateX(-20%);
}

.login-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.login-container .overlay-right {
    right: 0;
    transform: translateX(0);
}

.login-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.login-container .overlay-panel h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.login-container .overlay-panel p {
    font-size: 16px;
    margin-bottom: 20px;
}

.login-container .overlay-panel .btn {
    width: 160px;
    height: 46px;
    background-color: #fff;
    border: 2px solid #fff;
    color: #760e26;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

    .login-container .overlay-panel .btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: 0 0 10px #fff;
    }

.login-container h1 {
    font-size: 22px;
    margin-top: 12px;
    font-weight: bold;
    color: #760e26;
}

.login-container p {
    font-size: 16px;
    line-height: 1.4;
    margin: 20px 0 30px;
}

.login-container .ghost {
    background-color: #760e26;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 45px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .login-container .ghost:hover {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 10px #fff;
    }

.login-container .image {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px #fff;
    margin-bottom: 20px;
}

.login-container .error-message {
    color: #760e26;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
}

.login-container div.success-message {
    padding-top: 20px;
    color: green;
    font-weight: bold;
}

.login-container .button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
    margin-right: 270px;
}

.login-container .home-btn {
    background: #760e26;
    color: #fff;
    padding: 10px 20px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #760e26;
    transition: 0.3s ease;
}

    .login-container .home-btn:hover {
        background-color: #fff;
        color: #760e26;
        box-shadow: 0 0 10px #760e26;
        text-decoration: none;
    }

@media (max-width: 1370px) {

    .login-container button {

        margin-top: 20px;
    }
        .login-container, input {
        width: 50%;
        font-size: 10px !important;
    }

        .login-container input {
            width: 70%;
        }

        .login-container h1 {
            font-size: 16px;
        }

    .sign-in-container {
        font-size: 10px !important;
    }

    .sign-in-container button {
        font-size: 12px;
    }

    .overlay-right h2,
    .overlay-left h2 {
        margin-top: 0;
        font-size: 14px !important;
    }

    .overlay-right p,
    .overlay-left p {
        margin: 0;
        font-size: 10px !important;
    }

    .overlay-right .image,
    .overlay-left .image {
        margin: 0;
    }

    .overlay-right button {
        margin: 0;
        text-align: center;
        font-size: 12px;
    }

    .overlay-left button {
        margin: 0;
        text-align: center;
        font-size: 12px;
    }

    .alumni-footer {
        margin-top: 50px;
        padding: 0;
    }
    .footer-row {
        margin-top: 30px;
        padding: 0;
    }

    .sign-up-container input{
        margin: 1.5px;
        padding: 2px;
        width: 70%;
        height: 30px;
    }
    .sign-up-container form {
        margin: 2em;
    }

    .sign-up-container button {
        padding: 10px 2px;
        width: 70%;
        height: 30%;
        font-size: 12px;
    }
}

.checkbox-group {
    margin: 5px 0;
    font-size: 11px;
    color: #760e26;
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    line-height: 1.2;
    position: relative;
    padding-left: 24px; 
}


.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    
}

    .checkbox-group label::before {
        content: "";
        position: absolute;
        left: 0;
        top: 2px;
        width: 15px;
        height: 15px;
        border: 1px solid #760e26;
        border-radius: 2px;
        background-color: white;
    }

    .checkbox-group input[type="checkbox"]:checked + label::before {
        background-color: #760e26;
    }

.checkbox-group input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    left: 1px;
    top: -5px;
    font-size: 20px;
    color: white;
}

.sign-in-container button[type="submit"] {
    margin-top: -3px; 
}

.terms-text {
    font-size: 12px;
    margin-top: 45px;
    text-align: center;
    color: #760e26;
    margin-bottom: -20px;
}

    .terms-text a {
        color: #760e26;
        font-weight: 500;
        text-decoration: none;
    }

.terms-text a:hover {
    text-decoration:underline;
}


@media (max-width: 1370px) {
    
    .login-container {
        width: 90%;
        padding: 20px;
    }

    input {
        width: 70%;
        font-size: 14px;
    }

    button {
        width: 70%;
        font-size: 14px;
    }

    h1 {
        font-size: 18px;
    }

    .overlay-container {
        width: 100%;
    }

    .overlay-panel {
        padding: 20px;
    }

    .login-container button {
        width:120px;
    }

    .login-container button {
        display: flex;
        justify-content: center; 
        align-items: center; 
        text-align: center;
    }

    .overlay-left .ghost {
        margin-top:8px;
    }

    .overlay-right .ghost {
        margin-top:-5px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
  
    .login-page {
        overflow:hidden;
    }

    .login-container {
        height: 30vh;
    }

    .terms-text {
        margin-bottom: 0; 
        padding-bottom: 0;
    }

    .overlay-panel overlay-left {
        height: 100%
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 20px 15px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .login-container {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 500px;
        border-radius: 20px;
        margin-top: 0;
        box-shadow: 0 10px 30px rgba(118, 14, 38, 0.15);
        position: relative;
        overflow: visible;
    }

    .overlay-container {
        display: none !important;
    }

    .ghost {
        display: none !important;
    }

    .form-container {
        width: 100% !important;
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .sign-in-container {
        display: flex !important;
        opacity: 1 !important;
        position: relative !important;
    }

    .sign-up-container {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        border-radius: 20px;
    }

    .login-container.mobile-signup-active .sign-in-container {
        display: none !important;
    }

    .login-container.mobile-signup-active .sign-up-container {
        display: flex !important;
    }

    .login-container form {
        padding: 30px 25px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .login-container h1 {
        font-size: 24px;
        margin-bottom: 25px;
        color: #760e26;
        text-align: center;
    }

    .login-container input {
        width: 100%;
        padding: 15px;
        margin: 8px 0;
        border: 2px solid #e8c8d0;
        border-radius: 12px;
        font-size: 16px;
        background: #f9f2f4;
        transition: all 0.3s ease;
    }

        .login-container input:focus {
            border-color: #760e26;
            background: white;
            box-shadow: 0 0 0 3px rgba(118, 14, 38, 0.1);
            outline: none;
        }

    .login-container button[type="submit"] {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #760e26 0%, #a52a45 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 20px;
        box-shadow: 0 4px 15px rgba(118, 14, 38, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .login-container button[type="submit"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(118, 14, 38, 0.4);
        }


    a.mobile-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        width: 100%;
        padding: 14px;
        background: transparent;
        color: #760e26;
        border: 2px solid #760e26;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        margin-top: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        gap: 8px;
    }

        a.mobile-toggle-btn:hover {
            background: #760e26;
            color: white;
            text-decoration: none;
        }

        a.mobile-toggle-btn::after {
            content: "→";
            font-size: 18px;
            font-weight: bold;
            transition: transform 0.3s ease;
        }

        a.mobile-toggle-btn:hover::after {
            transform: translateX(3px);
        }

    @media (min-width: 769px) {
        .mobile-toggle-btn,
        .back-to-login {
            display: none !important;
        }
    }

    
    .back-to-login {
        width: 100%;
        padding: 14px;
        background: transparent;
        color: #760e26;
        border: 2px solid #760e26;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        margin-top: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        .back-to-login:hover {
            background: #760e26;
            color: white;
        }

        .back-to-login::before {
            content: "←";
            font-size: 18px;
            font-weight: bold;
            transition: transform 0.3s ease;
        }

        .back-to-login:hover::before {
            transform: translateX(-3px);
        }

    .checkbox-group {
        margin: 12px 0;
        display: flex;
        align-items: center;
        width: 100%;
    }

        .checkbox-group input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-right: 10px;
            accent-color: #760e26;
        }

        .checkbox-group label {
            font-size: 14px;
            color: #760e26;
        }

    .error-message {
        background: #ffe6e6;
        color: #760e26;
        padding: 12px;
        border-radius: 8px;
        margin: 15px 0;
        font-size: 14px;
        border-left: 4px solid #760e26;
        text-align: center;
    }

    .terms-text {
        text-align: center;
        margin-top: 25px;
        font-size: 13px;
        color: #666;
        padding: 0 20px;
    }

    .login-container a {
        color: #760e26;
        font-size: 14px;
        text-decoration: none;
        margin: 15px 0;
        display: inline-block;
        text-align: center;
        width: 100%;
    }

        .login-container a:hover {
            text-decoration: underline;
        }
}

@media (max-width: 480px) {
    .login-page {
        padding: 15px 10px;
    }

    .login-container {
        border-radius: 15px;
    }

        .login-container form {
            padding: 25px 20px;
        }

        .login-container h1 {
            font-size: 22px;
        }

        .login-container input {
            padding: 14px;
            font-size: 15px;
        }

        .login-container button[type="submit"] {
            padding: 15px;
            font-size: 15px;
        }

    .mobile-toggle-btn,
    .back-to-login {
        padding: 13px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .mobile-toggle-btn,
    .back-to-login {
        display: none !important;
    }
}


.mobile-toggle-btn {
    position: relative;
}

    .mobile-toggle-btn::after {
        content: "→";
        font-size: 18px;
        font-weight: bold;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .mobile-toggle-btn:hover::after {
        transform: translateX(3px);
    }

.back-to-login {
    position: relative;
}

    .back-to-login::before {
        content: "←";
        font-size: 18px;
        font-weight: bold;
        margin-right: 8px;
        transition: transform 0.3s ease;
    }

    .back-to-login:hover::before {
        transform: translateX(-3px);
    }



@media (max-width: 930px) and (min-width: 769px) {
    .login-page {
        padding: 30px 20px;
        margin-bottom: 0;
    }

    .login-container {
        width: 90%;
        max-width: 500px;
        height: 550px;
        margin-top: 0;
        top: 0;
    }

    .login-container form {
        padding: 25px 20px;
    }

    .login-container input {
        padding: 12px 15px;
        margin: 6px 0;
        font-size: 14px;
    }

    .login-container button[type="submit"] {
        padding: 14px;
        font-size: 14px;
        margin-top: 15px;
    }

    .login-container h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .overlay-panel {
        padding: 30px 25px;
        justify-content: flex-start; 
    }

    .overlay-panel h2 {
        font-size: 22px;
        margin-bottom: 10px; 
    }

    .overlay-panel p {
        font-size: 14px;
        margin-bottom: 10px; 
    }

    .image {
        width: 120px;
        height: 120px;
        margin-bottom: 10px; 
    }

    .overlay-left {
        justify-content: flex-end; 
        padding-bottom: 40px; 
    }

    .overlay-left .ghost {
        margin-top: 70px; 
        margin-bottom: 0;
    }

    .overlay-left .image {
        margin-top: 80px;
    }

    .overlay-right {
        justify-content: flex-end; 
        padding-bottom: 40px; 
    }

    .overlay-right .ghost {
        margin-top: 15px; 
        margin-bottom: 0;
    }

    .overlay-right .image {
        margin-top:60px;
    }
}

@media (max-width: 1030px) and (min-width: 930px) {
    html, body {
        overflow-x: hidden !important;
    }

    .login-container,
    .login-page,
    .overlay-container {
        max-width: 100vw;
        overflow-x: hidden !important;
    }
}