/* ========================================
   One Mail - Login Page Styles
   نظام التراسل الالكتروني
   Matching Original Design
   ======================================== */

/* CSS Variables */
:root {
    --primary-gold: #f5c220;
    --dark-border: #4a5568;
    --dark-bar: #2d3748;
    --white: #ffffff;
    --gray-text: #718096;
    --gray-icon: #6b7280;
    --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Dark Bars - Top and Bottom */
.dark-bar {
    background: var(--dark-bar);
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
}

.top-bar {
    height: 25px;
}

.bottom-bar {
    height: 25px;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    z-index: 0;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Login Card - Transparent with dark border */
.login-card {
    width: 30%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    border: 8px solid var(--dark-border);
    padding: 25px 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    width: 170px;
    height: auto;
    object-fit: contain;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input Group */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-family: var(--font-family);
    font-size: 14px;
    color: #333;
    background: var(--white);
    border: none;
    border-radius: 6px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-group input::placeholder {
    color: var(--gray-text);
    text-align: right;
}

.input-group input:focus {
    box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.3);
}

/* Icon on the LEFT side (appears on right in RTL) */
.input-icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gray-icon);
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-gold);
    background: var(--dark-border);;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.login-button:hover {
    background: #3d4a5c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.login-button:active {
    transform: translateY(1px);
}

/* Request Code Link */
.request-code-link {
    display: block;
    width: 100%;
    padding: 12px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color:var(--dark-border);
    background: var(--white);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.request-code-link:hover {
    background: #fffbeb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        width: 90%;
        max-width: 420px;
        padding: 20px 25px 25px;
        border-radius: 25px;
    }

    .logo {
        width: 100px;
    }

    .input-group input {
        padding: 10px 40px 10px 12px;
        font-size: 13px;
    }

    .login-button,
    .request-code-link {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-height: 600px) {
    .top-bar,
    .bottom-bar {
        height: 15px;
    }

    .background-container {
        top: 15px;
        height: calc(100% - 30px);
    }

    .login-card {
        padding: 20px 25px;
    }

    .logo {
        width: 90px;
    }

    .logo-section {
        margin-bottom: 10px;
    }

    .login-form {
        gap: 10px;
    }
}
