@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('og.avif') no-repeat center center;
    background-size: cover;
    filter: brightness(0.7);
    z-index: -1;
}

.box {
    width: 400px;
    padding: 40px;
    background: rgba(71, 71, 71, 0.555);
    box-shadow: 0 15px 35px rgb(0, 0, 0);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0);
}

.box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #FFF;
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
}

.box .inputBox {
    position: relative;
    margin-bottom: 30px;
}

.box .inputBox input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #FFF;
    letter-spacing: 1px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    outline: none;
    background: transparent;
    transition: 0.3s;
}

.box .inputBox input:focus {
    border-bottom: 1px solid #03A9F4;
    box-shadow: 0 1px 0 0 #03A9F4;
}

.box .inputBox label {
    position: absolute;
    top: 12px;
    right: 0;
    padding: 10px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: 0.5s;
}

.box .inputBox input:focus ~ label,
.box .inputBox input:valid ~ label {
    top: -18px;
    right: 0;
    color: #03A9F4;
    font-size: 12px;
    font-weight: 500;
}

.remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.remember label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember input {
    margin-left: 5px;
}

.remember a {
    color: #03A9F4;
    text-decoration: none;
    transition: 0.3s;
}

.remember a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #03A9F4, #0288D1);
    border: none;
    outline: none;
    color: #FFF;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(3, 169, 244, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #0288D1, #0277BD);
    box-shadow: 0 6px 20px rgba(3, 169, 244, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(3, 169, 244, 0.3);
}

.submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.submit-btn.loading span {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.register {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.register a {
    color: #03A9F4;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.register a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .box {
        width: 85%;
        padding: 30px 25px;
    }
    
    .remember {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
/* استایل‌های جدید برای صفحه نخست */
.description {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.service-item h3 {
    color: #03A9F4;
    margin-bottom: 8px;
    font-size: 1rem;
}

.service-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.mission {
    background: rgba(3, 169, 244, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-right: 3px solid #03A9F4;
}

.mission p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.login-btn, .register-btn {
    flex: 1;
}

.register-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.register-btn:hover {
    background: linear-gradient(45deg, #45a049, #3d8b40);
}

.app-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.app-message {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.app-download-btn {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    border: none;
    outline: none;
    color: #FFF;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.app-download-btn:hover {
    background: linear-gradient(45deg, #F57C00, #EF6C00);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

.app-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
}

/* رسپانسیو برای موبایل */
@media (max-width: 720px) {
    .services {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
}