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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1a202c;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dfd5 100%);
    overflow: hidden;
}

.login-left {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dfd5 100%);
}

.login-left-content {
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.login-badge {
    display: inline-block;
    color: #2c7a7b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.login-left h1 {
    font-size: 48px;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.login-description {
    font-size: 17px;
    color: #4a5568;
    margin-bottom: 52px;
    line-height: 1.65;
}

.role-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.role-card {
    background: white;
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.role-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #2c7a7b;
    transform: translateX(6px);
}

.role-card h3 {
    font-size: 16px;
    color: #1a202c;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.role-card p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* RIGHT SECTION - LOGIN FORM (40% width) */
.login-right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 45px;
    background: white;
    position: relative;
    overflow: hidden;
}

.login-box {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.welcome-badge {
    display: inline-block;
    color: #2c7a7b;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.login-box h2 {
    font-size: 32px;
    color: #1a202c;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.login-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a202c;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f7fafc;
    transition: border-color 0.2s;
    font-family: inherit;
}

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

.form-group input:focus {
    outline: none;
    border-color: #2c7a7b;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

.form-group input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.error-message {
    color: #c53030;
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
}

.btn-signin {
    width: 100%;
    padding: 12px 16px;
    background-color: #2c7a7b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(44, 122, 123, 0.2);
}

.btn-signin:hover {
    background-color: #234e52;
    box-shadow: 0 4px 16px rgba(44, 122, 123, 0.3);
}

.btn-signin:active {
    transform: scale(0.98);
}

.btn-signin:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 1400px) {
    .login-left {
        flex: 0 0 55%;
        padding: 50px 40px;
    }

    .login-right {
        flex: 0 0 45%;
        padding: 40px 35px;
    }

    .login-left h1 {
        font-size: 42px;
    }

    .login-box h2 {
        font-size: 28px;
    }
}

@media (max-width: 1200px) {
    .login-left {
        flex: 0 0 50%;
        padding: 40px 35px;
    }

    .login-right {
        flex: 0 0 50%;
        padding: 40px 30px;
    }

    .login-left h1 {
        font-size: 38px;
    }

    .login-box h2 {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        flex: 0 0 auto;
        min-height: 45vh;
        padding: 40px 30px;
    }

    .login-right {
        flex: 0 0 auto;
        min-height: 55vh;
        padding: 40px 30px;
    }

    .login-left h1 {
        font-size: 36px;
    }

    .role-cards {
        flex-direction: row;
        gap: 12px;
    }

    .role-card {
        flex: 1;
        padding: 18px;
    }

    .role-card h3 {
        font-size: 14px;
    }

    .role-card p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        min-height: auto;
        flex-direction: column;
    }

    .login-left {
        display: none;
    }

    .login-right {
        flex: 0 0 auto;
        min-height: 100vh;
        background: linear-gradient(135deg, #f5f1e8 0%, #e8dfd5 100%);
        padding: 40px 25px;
    }

    .login-box {
        max-width: 100%;
    }

    .login-box h2 {
        font-size: 26px;
    }

    .form-group input {
        padding: 11px 12px;
        font-size: 16px;
    }

    .btn-signin {
        padding: 11px 14px;
        font-size: 13px;
    }
}

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

    .login-box {
        width: 100%;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input {
        padding: 10px;
        font-size: 14px;
    }

    .btn-signin {
        padding: 10px 12px;
        font-size: 12px;
    }

    .error-message {
        font-size: 12px;
        padding: 10px 12px;
    }
}