* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fcf8f7;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.main-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-color: #fcf8f7;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('/api/placeholder/1200/600'); */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.diagonal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, #7e0e09 0%, #7e0e09 35%, transparent 35%, transparent 100%);
}

.logo-container {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 240px;
    z-index: 2;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.logo-container:hover {
    transform: translateY(-50%) scale(1.05);
}

.logo {
    width: 130%;
    height: auto;
    display: block;
    margin: auto;
    max-width: 100%;
}

.login-form-container {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 430px;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.login-form-container:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.login-form {
    background-color: white;
    padding: 32px 28px;
}

.form-title {
    text-align: center;
    margin-bottom: 28px;
}

.form-title h2 {
    color: #7e0e09;
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: #7e0e09;
}

.form-control {
    width: 100%;
    padding: 12px 4px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ddd;
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-bottom-color: #7e0e09;
}

.form-control::placeholder {
    color: #bbb;
    font-size: 14px;
}

.sign-in-btn {
    width: 100%;
    padding: 14px;
    background-color: #7e0e09;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.sign-in-btn:hover {
    background-color: #7a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.25);
}

.sign-in-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .diagonal-overlay {
        background: linear-gradient(135deg, #7e0e09 0%, #7e0e09 25%, transparent 25%, transparent 100%);
    }
    
    .logo-container {
        left: 10%;
        width: 180px;
        height: 180px;
    }
    
    .login-form-container {
        right: 8%;
        width: 400px;
        max-width: 50%;
    }
}

@media (max-width: 820px) {
    .login-form-container {
        width: 350px;
        right: 5%;
    }
    
    .logo-container {
        left: 7%;
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .diagonal-overlay {
        background: linear-gradient(180deg, #7e0e09 0%, #7e0e09 30%, transparent 30%, transparent 100%);
    }
    
    .logo-container {
        position: absolute;
        left: 50%;
        top: 15%;
        transform: translateX(-50%);
        margin-bottom: 40px;
        width: 160px;
        height: 160px;
    }
    
    .logo-container:hover {
        transform: translateX(-50%) scale(1.05);
    }
    
    .login-form-container {
        position: absolute;
        right: 50%;
        top: 50%;
        transform: translate(50%, 0);
        width: 90%;
        max-width: 400px;
        margin-top: 100px;
    }
    
    .login-form-container:hover {
        transform: translate(50%, 0) scale(1.02);
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 140px;
        height: 140px;
        top: 12%;
    }
    
    .form-title h2 {
        font-size: 22px;
    }
    
    .login-form {
        padding: 24px 20px;
    }
    
    .form-group {
        margin-bottom: 22px;
    }
    
    .form-control {
        padding: 10px 4px;
        font-size: 15px;
    }
    
    .sign-in-btn {
        padding: 12px;
        font-size: 16px;
    }
}

.logo-form-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1400px;
    height: 85vh;
    max-height: 700px;
    border-radius: 20px;
    z-index: 1;
    background-color: white;
}

    @media (min-width: 1600px) {
    .logo-form-bg {
        max-width: 1600px;
        max-height: 800px;
    }
}

@media (max-width: 992px) {
    .logo-form-bg {
        width: 90%;
        height: 80vh;
    }
}

@media (max-width: 768px) {
    .logo-form-bg {
        width: 95%;
        height: 90%;
        max-height: none;
    }
}

.signup-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.signup-link {
    color: #7e0e09;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #a01f1a;
    text-decoration: underline;
}

/* Signup form styles */
.signup-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 1000px;
    z-index: 3;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

.signup-title {
    text-align: center;
    margin-bottom: 30px;
}

.signup-title h2 {
    color: #7e0e09;
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.signup-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.submit-btn {
    grid-column: span 3;
    padding: 14px;
    background-color: #7e0e09;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #7a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.login-link-container {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.login-link {
    color: #7e0e09;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #a01f1a;
    text-decoration: underline;
}

/* Custom select styling */

.select-wrapper::after {
    content: '▼';
    font-size: 12px;
    color: #7e0e09;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .signup-container {
        width: 85%;
    }
}

/* Password field container styling */
.password-container {
    position: relative;
    display: block;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
    z-index: 100;
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #7e0e09;
}

.password-toggle:focus {
    outline: none;
    color: #7e0e09;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    padding-right: 50px !important;
    width: 100%;
}

.password-toggle i {
    pointer-events: none;
}