
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body, html {
    height: 100%;
    overflow: hidden;
}

/* Background Animation */
.login-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/SanSebCath.jpg') center center / cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -1;
}

.login-bg-animation::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 1;
}

/* Main Container */
.super-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 2;
}

.login-container {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 40px 36px 32px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
}

/* Logo */
.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.login-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Title */
.login-title {
    color: #FBF5E5;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-top: 35px;
    margin-bottom: 22px;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.input-group {
    width: 100%;
    text-align: left;
}

.input-group label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    margin: 4px 0 10px;
    display: block;
}

/* Unified input with icons and toggle inside */
.input-icon-group {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    column-gap: 10px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.input-icon {
    color: #FF9800;
    justify-self: center;
    font-size: 18px;
}

.input-icon-group input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 0;
    color: #1a2b2a;
    font-size: 16px;
    font-weight: 500;
}

.input-icon-group input::placeholder {
    color: #6b7a79;
}

.input-icon-group input:focus { outline: none; }

/* Password Toggle inside the same field */
.password-toggle {
    justify-self: center;
    background: transparent;
    border: none;
    color: #7b8b8a;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover { background: rgba(23, 89, 74, 0.08); color: #17594A; }
.password-toggle i { font-size: 18px; }

/* Login Button */
.login-btn {
    width: 100%;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 6px;
}

.login-btn:hover {
    background-color: #ff8c00;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.35);
}

/* Modal Styles */
.laag-modal {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.laag-modal .modal-header {
    background-color: #17594A;
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.laag-modal .modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
}

.laag-modal .modal-body {
    padding: 30px 25px;
    text-align: center;
}

.laag-modal .modal-footer {
    border-top: none;
    padding: 15px 25px 25px;
    justify-content: center;
}

.error-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon-container i {
    font-size: 36px;
    color: #FF3B30;
}

.error-message {
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05em;
    line-height: 1.5;
}

.laag-button {
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.2s;
}

.laag-button:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-close {
    color: white;
    opacity: 0.8;
    box-shadow: none;
}

.btn-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 520px) {
    .login-container { max-width: 92%; padding: 28px 22px; }
}