/* IOS 26 Future Style - Ultra Glassmorphism */
* {
    box-sizing: border-box;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.2) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white;
}

:root {
    --ios-blue: #007AFF;
    --ios-system-gray: #8E8E93;
    --ios-bg-glass: rgba(255, 255, 255, 0.65);
    --ios-border-glass: rgba(255, 255, 255, 0.4);
    --ios-text: #1d1d1f;
    --ios-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0F3042;
    /* Fallback */
    overflow: hidden;
    position: relative;
}

/* Professional Inventory Collage Background */
.bg-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../img/login_bg_collage.png') no-repeat center center fixed;
    background-size: cover;
}

/* Gradient Overlay for Text Readability */
.bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 48, 66, 0.85), rgba(46, 134, 171, 0.6));
    backdrop-filter: blur(2px);
}

/* Ultra Glass Card */
.login-card {
    background: rgba(255, 255, 255, 0.15);
    /* More transparent */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    /* Super rounded IOS style */
    padding: 3.5rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.login-card:hover {
    transform: scale(1.02);
}

/* Typography */
.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
}

.brand-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Inputs - IOS Style */
.input-container {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.input-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    padding-left: 45px;
    padding-right: 45px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}



.input-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper .input-icon-left {
    left: 15px;
}

.input-wrapper .input-icon-right {
    right: 15px;
    pointer-events: auto;
    cursor: pointer;
}

.input-wrapper:focus-within i {
    color: white;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

/* Button - IOS Primary Action */
/* Button - IOS Primary Action - Glass Style */
.login-button {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.login-button i {
    transition: transform 0.3s ease;
}

.login-button:hover i {
    transform: translateX(5px);
}

/* Error Messages */
.errorlist {
    background: rgba(255, 59, 48, 0.2);
    /* IOS Red */
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    padding: 10px;
    list-style: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.copyright {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsiveness */
@media (max-width: 480px) {
    .login-card {
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }

    .brand-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Footer Styles */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--ios-blue);
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--ios-blue);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
    color: white;
}