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

body {
    font-family: 'Karma', sans-serif;
    background-color: #e8e8e8;
    overflow: auto;
}

.container {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Blue diagonal section */
.blue-section {
    position: relative;
    flex: 1 1 45%;
    min-height: 100vh;
    overflow: hidden;
}

.blue-diagonal {
    position: absolute;
    width: 717.94px;
    height: 1304.33px;
    background-color: #0078d2;
    transform: rotate(20.109deg);
    transform-origin: top left;
    left: -341px;
    top: -341px;
}

.plane-image {
    position: absolute;
    left: -26px;
    top: 200px;
    width: 693px;
    height: 390px;
    object-fit: cover;
    z-index: 2;
}

/* Login section */
.login-section {
    position: relative;
    z-index: 3;
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 10px;
}

.aa-logo {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 146px;
    height: auto;
}

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

.welcome-title {
    position: static;
    text-align: center;
    font-family: 'Kaushan Script', cursive;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    color: #000;
}

.login-subtitle {
    position: static;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #c30019;
    margin-top: 4px;
}

/* Form */
.login-form {
    position: static;
    width: 100%;
    max-width: 404px;
}

/* Signup form adjustments */
.signup-form {
    top: 250px;
}

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

/* Ensure items placed inside the form appear directly under the button */
.signup-form .signup-text {
    position: static;
    margin-top: 14px;
    font-size: 15.4px;
    font-weight: 700;
    text-align: center;
}
.signup-form .skills-logo {
    position: static;
    margin: 10px auto 0;
    width: 142.912px;
    height: 75.328px;
}
.signup-form .skills-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Signup page specific positioning */
.signup-form ~ .signup-text {
    top: 620px;
}

.signup-form ~ .signup-text + .skills-logo {
    top: 635px;
}

.form-group {
    margin-bottom: 33px;
}

.form-group label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 58px;
    background-color: rgba(195, 0, 25, 0.17);
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 16px;
    font-family: 'Karma', sans-serif;
    outline: none;
    transition: background-color 0.3s ease;
}

.form-input:focus {
    background-color: rgba(195, 0, 25, 0.25);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    background-color: #d9d9d9;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0078d2;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0078d2;
}

.login-button {
    width: 100%;
    height: 58px;
    background-color: #0078d2;
    color: #f6f6f6;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Karma', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.login-button:hover {
    background-color: #005fa3;
}

.login-button:active {
    transform: scale(0.98);
}

.signup-text {
    position: static;
    text-align: center;
    font-size: 15.4px;
    font-weight: 700;
    margin-top: 14px;
}

.no-account {
    color: #c30019;
}

.signup-link {
    color: #0078d2;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #005fa3;
}

.skills-logo {
    position: static;
    margin: 10px auto 0;
    width: 142.912px;
    height: auto;
}

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

/* Responsive adjustments for smaller screens */
@media (max-width: 1280px) {
    .aa-logo {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: 100vh;
    }
    .blue-section {
        flex: 0 0 35vh;
        min-height: 35vh;
    }
    .login-section {
        flex: 1 0 auto;
        padding: 28px 16px 24px;
        justify-content: flex-start;
    }
    .blue-diagonal {
        width: 500px;
    }
    
    .plane-image {
        width: 500px;
        height: 280px;
        left: -50px;
    }
    .welcome-title { font-size: 32px; }
    .login-subtitle { font-size: 18px; }
    .login-form { width: 100%; max-width: 400px; }
    .aa-logo { right: 16px; top: 16px; width: 120px; }
}

