* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* Background image with blur effect */
    background: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("../images/bg-blur.jpeg") center/cover no-repeat fixed;
    background-color: #ff6b35;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Alternative: If image still not showing, use solid gradient */
body.no-bg-image {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
}

/* Blur overlay - reduced opacity to show image */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 0;
    pointer-events: none;
    
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

/* Thin circle border effect */
.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #1407020c, #0f05010e);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    color: #2d3142;
    font-size: 24px;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2d3142;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
}

.signin-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35 0%, #e85a28 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.signin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.signin-btn:active:not(:disabled) {
    transform: translateY(0);
}

.signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #e85a28;
    text-decoration: underline;
}

.note {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 49, 66, 0.85);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    margin: 50px auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2d3142;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #2d3142;
    margin-bottom: 20px;
}

.otp-form,
.password-form {
    display: none;
}

.masked-email {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: #2d3142;
    font-weight: 500;
    font-size: 14px;
}

/* Password Input Container */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    padding: 12px 45px 12px 16px; /* Extra padding on right for icon */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color 0.2s;
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.toggle-password:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.toggle-password:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hide eye icon when showing password, show eye-off */
.toggle-password .eye-icon {
    display: block;
}

.toggle-password .eye-off-icon {
    display: none;
}

/* When password is visible */
.toggle-password.active .eye-icon {
    display: none;
}

.toggle-password.active .eye-off-icon {
    display: block;
}

/* Animation for icon change */
.toggle-password svg {
    transition: transform 0.2s ease;
}

.toggle-password:active svg {
    transform: scale(0.9);
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }

     .toggle-password {
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .toggle-password svg {
        width: 22px;
        height: 22px;
    }

    /* Focus visible for accessibility */
.toggle-password:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Ensure input text is not overlapping with icon */
.password-input-wrapper input {
    padding-right: 45px;
}
}


