/* ============================================
   GVP Login Page Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1b232e;
    color: #cdcdcd;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.6;
}

/* ============================================
   Login Container
   ============================================ */

.gvp-login {
    width: 100%;
    max-width: 420px;
}

.gvp-login__container {
    background: #1a232e;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    animation: slideUp 0.4s ease-out;
}

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

/* ============================================
   Header
   ============================================ */

.gvp-login__header {
    text-align: center;
    margin-bottom: 2rem;
}

.gvp-login__logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.gvp-login__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #cdcdcd;
    margin-bottom: 0.5rem;
}

.gvp-login__subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ============================================
   Messages
   ============================================ */

.gvp-login__messages {
    margin-bottom: 1.5rem;
}

.gvp-login__message {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    animation: slideIn 0.3s ease-out;
}

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

.gvp-login__message--error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.gvp-login__message--success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.gvp-login__message--info {
    background-color: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #2563eb;
}

.gvp-login__message i {
    font-size: 1rem;
}

/* ============================================
   Form
   ============================================ */

.gvp-login__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gvp-login__form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gvp-login__form-group--checkbox {
    flex-direction: row;
    align-items: center;
}

.gvp-login__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gvp-login__label i {
    color: #2563eb;
    font-size: 0.875rem;
}

.gvp-login__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #cdcdcd;
    transition: all 0.2s ease;
    background-color: #2a3441;
}

.gvp-login__input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.gvp-login__input::placeholder {
    color: #64748b;
}

.gvp-login__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    cursor: pointer;
    user-select: none;
}

.gvp-login__checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    cursor: pointer;
    accent-color: #2563eb;
}

.gvp-login__checkbox:checked {
    background-color: #2563eb;
}

.gvp-login__button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.gvp-login__button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.gvp-login__button:active {
    transform: translateY(0);
}

.gvp-login__button i {
    font-size: 1.125rem;
}

/* ============================================
   Footer
   ============================================ */

.gvp-login__footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gvp-login__footer-text {
    font-size: 0.8125rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gvp-login__footer-text i {
    color: #2563eb;
}

/* ============================================
   Social Login
   ============================================ */

.gvp-login__divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.gvp-login__divider::before,
.gvp-login__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.gvp-login__divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.gvp-login__social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gvp-login__google-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.gvp-login__google-button:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.gvp-login__google-button:active {
    transform: translateY(0);
}

.gvp-login__google-button svg {
    width: 18px;
    height: 18px;
}

.gvp-login__social-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin: 0;
}

/* ============================================
   Social Login Content
   ============================================ */

.gvp-login__social-content {
    margin-top: 1.5rem;
}

.gvp-login__social-description {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gvp-login__button--google {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gvp-login__button--google:hover {
    background: #f9fafb;
    border-color: rgba(255, 255, 255, 0.3);
}

.gvp-login__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: 1rem;
}

.gvp-login__back-link:hover {
    color: #2563eb;
}

.gvp-login__back-link i {
    font-size: 0.75rem;
}

/* ============================================
   Info Box (для signup_closed та інших інформаційних сторінок)
   ============================================ */

.gvp-login__info-box {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.gvp-login__info-box i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
    display: block;
}

.gvp-login__info-box p {
    color: #cdcdcd;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.gvp-login__info-box p:last-child {
    margin-bottom: 0;
}

.gvp-login__info-note {
    font-size: 0.8125rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* ============================================
   Form Field Errors & Help Text
   ============================================ */

.gvp-login__field-errors {
    margin-top: 0.25rem;
}

.gvp-login__field-error {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.gvp-login__help-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.gvp-login__required {
    color: #ef4444;
    margin-left: 0.25rem;
}

/* ============================================
   Django Form Fields Styling
   ============================================ */

.gvp-login__form input[type="text"],
.gvp-login__form input[type="email"],
.gvp-login__form input[type="password"],
.gvp-login__form textarea,
.gvp-login__form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #cdcdcd;
    transition: all 0.2s ease;
    background-color: #2a3441;
    font-family: inherit;
}

.gvp-login__form input[type="text"]:focus,
.gvp-login__form input[type="email"]:focus,
.gvp-login__form input[type="password"]:focus,
.gvp-login__form textarea:focus,
.gvp-login__form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.gvp-login__form input[type="text"]::placeholder,
.gvp-login__form input[type="email"]::placeholder,
.gvp-login__form input[type="password"]::placeholder,
.gvp-login__form textarea::placeholder {
    color: #64748b;
}

.gvp-login__form textarea {
    min-height: 100px;
    resize: vertical;
}

.gvp-login__form select {
    cursor: pointer;
}

.gvp-login__form select option {
    background-color: #2a3441;
    color: #cdcdcd;
}

/* ============================================
   Footer Links
   ============================================ */

.gvp-login__footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gvp-login__footer a:hover {
    color: #2563eb;
}

.gvp-login__footer a i {
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 480px) {
    .gvp-login__container {
        padding: 2rem 1.5rem;
    }
    
    .gvp-login__title {
        font-size: 1.5rem;
    }
    
    .gvp-login__logo {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .gvp-login__info-box {
        padding: 1.25rem;
    }
    
    .gvp-login__info-box i {
        font-size: 1.75rem;
    }
}

