﻿@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Montserrat:wght@600&display=swap');

/*!
 * Bootstrap v4.3.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 The Bootstrap Authors
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
@font-face {
    font-family: Sahel;
    src: url('../fonts/Sahel-FD.eot');
    src: url('../fonts/Sahel-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/Sahel-FD.woff2') format('woff2'), url('../fonts/Sahel-FD.woff') format('woff'), url('../fonts/Sahel-FD.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: SahelB;
    src: url('../fonts/Sahel-Bold-FD.eot');
    src: url('../fonts/Sahel-Bold-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/Sahel-Bold-FD.woff2') format('woff2'), url('../fonts/Sahel-Bold-FD.woff') format('woff'), url('../fonts/Sahel-Bold-FD.ttf') format('truetype');
}

@font-face {
    font-family: SahelT;
    src: url('fonts/Sahel-Black-FD.eot');
    src: url('fonts/Sahel-Black-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/Sahel-Black-FD.woff2') format('woff2'), url('../fonts/Sahel-Black-FD.woff') format('woff'), url('../fonts/Sahel-Black-FD.ttf') format('truetype');
}
a:hover {
    text-decoration: none !important;
}

body {
    background: linear-gradient(135deg, rgba(6, 12, 24, 0.9), rgba(17, 54, 74, 0.7)), url(../images/login/loginImage.jpg) center/cover no-repeat fixed;
    font-family: 'Sahel', 'Lato', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    color: #fff;
}

.login-container {
    width: 100%;
    padding: 2rem;
}

.login-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
    text-align: right;
}

.login-info-panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(16, 186, 129, 0.15);
    color: #8cf0c9;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.login-info-panel h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.login-info-panel p {
    color: #e3e6ea;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.login-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #f9fbfc;
}

.login-benefits i {
    color: #33e4a7;
    font-size: 1.1rem;
}

.login-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.login-brand {
    display: block;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 2.6rem;
    color: #1fdfa1;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Playfair Display', 'Sahel', serif;
    letter-spacing: 0.45rem;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.login-tagline {
    font-size: 0.9rem;
    color: #f2f7f5;
}

.login-subtitle,
.login-welcome,
.login-prompt {
    margin: 0.25rem 0;
}

.login-welcome {
    font-size: 1.2rem;
    font-weight: 700;
}

.login-prompt {
    color: #e1e3e4;
    margin-bottom: 1rem !important;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label {
    font-weight: 600;
    color: #dfe3e5;
}

.phone-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 0.35rem 0.35rem 0.35rem 0.75rem;
    gap: 0.5rem;
    direction:ltr;
}

.phone-input span {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-weight: 700;
}

.textbox {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Sahel', sans-serif;
}

.textbox:focus {
    outline: none;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.login-actions .btn {
    border: none;
    border-radius: 18px;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0fba81, #0a7d5a);
    color: #fff;
    box-shadow: 0 15px 35px rgba(15, 186, 129, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.login-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.login-actions .btn:hover {
    transform: translateY(-2px);
}

.login-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 16px;
    background: rgba(38, 51, 51, 0.65);
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    color: #f4fdf9;
}

.login-helper a {
    color: #7ef6c8;
}

.login-message {
    min-height: 24px;
    font-size: 0.95rem;
}

.login-message.success {
    color: #9bffc9;
}

.login-message.error {
    color: #ff9b9b;
}

.text-right {
    text-align: right;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.d-none {
    display: none !important;
}

/* Confirm page tweaks */
.confirm-info .login-benefits li {
    color: #dfe8ff;
}

.confirm-box .login-timer {
    margin-top: 1rem;
}

.otp-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.otp-input {
    border: none;
    border-radius: 18px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    letter-spacing: 0.35rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.otp-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 186, 129, 0.25);
}

@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem;
    }

    .login-box,
    .login-info-panel {
        padding: 1.75rem;
    }

    .login-title {
        font-size: 1.9rem;
        letter-spacing: 0.2rem;
    }

    body {
        background-size: 1200px auto;
    }
}

@media (max-width: 480px) {
    .login-content {
        grid-template-columns: 1fr;
    }

    .login-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .phone-input {
        flex-direction: column;
        align-items: stretch;
    }

    .phone-input span {
        text-align: center;
    }
}