/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --ted-red: #e62b1e;
    --dark-bg: #111111;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(230, 43, 30, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(230, 43, 30, 0.1) 0%, transparent 20%);
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.logo {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.logo span {
    color: var(--ted-red);
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

p.subtitle {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: right;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--ted-red);
    box-shadow: 0 0 0 2px rgba(230, 43, 30, 0.2);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--ted-red);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff3333;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.error-msg {
    background: rgba(230, 43, 30, 0.2);
    color: #ffcccb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(230, 43, 30, 0.3);
}

.qr-container {
    background: white;
    padding: 15px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 25px;
}

.qr-image {
    width: 250px;
    height: 250px;
    max-width: 100%;
    display: block;
}

.footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
}

.back-link {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.back-link:hover {
    color: #999;
}
