/* macOS Inspired Login Screen */
:root {
    --mac-radius: 12px;
    --mac-shadow: 0 20px 40px rgba(0,0,0,0.3);
    --mac-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login-mac-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mac-font);
    background: url('/assets/images/os-wallpaper.png') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
}

.login-mac-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1;
}

.login-mac-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 360px;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    text-align: center;
    color: white;
    animation: fadeIn 0.8s ease-out;
}

.login-mac-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.login-mac-avatar i {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.8);
}

.login-mac-username {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-mac-input-group {
    position: relative;
    background: rgba(255, 255, 255, 0.1); /* شفافية */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 2px 2px 2px 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.login-mac-input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.login-mac-input {
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 0 !important;
    width: 100%;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.login-mac-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


.login-mac-submit {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
}

.login-mac-submit:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Glassy Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

input[type="checkbox"]:checked {
    background: var(--os-primary, #007AFF);
    border-color: var(--os-primary, #007AFF);
}

input[type="checkbox"]:checked::after {
    content: '\eb7b'; /* remixicon check mark */
    font-family: 'remixicon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: white;
}

.login-mac-footer {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 2;
}

.login-mac-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    background: none;
    border: none;
}

.login-mac-footer-btn:hover {
    opacity: 0.7;
}

.login-mac-footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-mac-footer-text {
    font-size: 12px;
    font-weight: 500;
}

.login-mac-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    z-index: 2;
    font-size: 13px;
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-left {
    display: flex;
    align-items: center;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* For multi-account view (if needed later) */
.login-mac-users {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.login-mac-user-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.login-mac-user-item:hover {
    transform: translateY(-5px);
}
