* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    min-height: 100vh;
    background-image: url('https://www.squaresnacres.mecntech.com/assets/images/bg-mecntec.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 30rem;
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Header */
.brand-header {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #e0f2fe, #f0fdfa);
    position: relative;
    overflow: hidden;
}

.brand-header i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #0891b2;
}

.brand-header h1 {
    font-size: 15px;
    font-weight: 700;
    color: #0c4a6e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Role Selector */
.role-selector {
    background: #f8fafc;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.role-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-button:hover {
    background: #f1f5f9;
    color: #0c4a6e;
}

.role-button.loginActive {
    background: #fff;
    color: #0891b2;
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.icon-down {
    font-size: 0.875rem;
    display: none;
}

.role-button.loginActive .icon-down {
    display: inline;
}

/* Login Forms */
.login-forms {
    padding: 0.5rem 2rem;
}

.login-form {
    display: none;
}

.login-form.loginActive {
    display: block;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-container i {
    font-size: 1.75rem;
}

.icon-container.blue {
    background: #e0f2fe;
    color: #0891b2;
}

.icon-container.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.icon-container.pink {
    background: #fce7f3;
    color: #db2777;
}

.form-header h2 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: #64748b;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Password Input */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
}

.toggle-password:hover {
    color: #0891b2;
}

/* Submit Buttons */
.submit-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.blue-gradient {
    background: linear-gradient(135deg, #0891b2, #0284c7);
    color: white;
}

.blue-gradient:hover {
    background: linear-gradient(135deg, #0e7490, #0369a1);
}

.purple-gradient {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

.purple-gradient:hover {
    background: linear-gradient(135deg, #7e22ce, #6d28d9);
}

.pink-gradient {
    background: linear-gradient(135deg, #db2777, #e11d48);
    color: white;
}

.pink-gradient:hover {
    background: linear-gradient(135deg, #be185d, #be123c);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.forgot-password:hover {
    color: #0891b2;
}

.signup-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.signup-text a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
}

.signup-text a:hover {
    text-decoration: underline;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: #475569;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #0891b2;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0891b2;
    border-color: #0891b2;
}

.form-check-label {
    color: #475569;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .login-forms {
        padding: 1rem;
    }

    .role-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}