:root {
    --drone-blue: #8bbcdc;
    --robot-gold: #ddb537;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e1e5eb;
    --text-dark: #333;
    --text-light: #666;
    --error-red: #dc3545;
    --success-green: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    width: 470px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
    position: relative;
}

/* Декоративные элементы */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--drone-blue), var(--robot-gold));
}

.logo img {
    width: 200px;
    margin-top: 3px;
}

/*For Google Recaptcha*/
.g-recaptcha div {
    width: 100% !important;
}

.drone-icon {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(139, 188, 220, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.robot-icon {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: rgba(221, 181, 55, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.login-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
}

.login-title {
    font-size: 28px;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 12px;
}

/* Форма */
.login-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--drone-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 188, 220, 0.2);
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.toggle-password {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Сообщения об ошибках */
.error-message {
    color: var(--error-red);
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Flash сообщения */
.flash-messages {
    margin-bottom: 24px;
}

.flash-message {
    padding: 14px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
    text-align: left;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--drone-blue), #9dc9e8);
    color: white;
    margin-bottom: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 188, 220, 0.4);
}

.btn-outline {
    background: white;
    color: var(--dark-bg);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--drone-blue);
    color: var(--drone-blue);
}

/* Ссылки */
.login-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-link {
    color: var(--drone-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

.ta-left {
    text-align: left !important;
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .drone-icon, .robot-icon {
        display: none;
    }
}
