/**
 * Authentication CSS for PocketOption Trading Funnel
 */

/* Modal Overlay */
.po-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.po-modal-overlay--show {
    display: block;
}

/* Modal */
.po-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a2035;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    z-index: 1001;
    display: none;
    overflow: hidden;
    border: 1px solid #2d3748;
}

.po-modal--show {
    display: block;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal Header */
.po-modal__header {
    padding: 15px 20px;
    background-color: #1e2745;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.po-modal__title {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.po-modal__close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Special styling for profile modal close button */
#profile-modal .po-modal__close {
    display: block !important; /* Always show close button for profile modal */
    color: #fff;
    font-size: 28px;
    transition: all 0.2s ease;
}

#profile-modal .po-modal__close:hover {
    color: #3498db;
    transform: scale(1.1);
}

.po-modal__close:hover {
    color: #fff;
}

/* Modal Body */
.po-modal__body {
    padding: 20px;
}

/* Modal Footer */
.po-modal__footer {
    padding: 15px 20px;
    background-color: #1e2745;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.po-modal__footer p {
    margin: 0;
    color: #a0aec0;
    font-size: 14px;
}

.po-modal__footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.po-modal__footer a:hover {
    text-decoration: underline;
}

/* Form */
.po-form__group {
    margin-bottom: 20px;
}

.po-form__label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

.po-form__input {
    width: 100%;
    padding: 12px 15px;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.po-form__input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.po-form__input::placeholder {
    color: #a0aec0;
}

.po-form__message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.po-form__message--success {
    background-color: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.po-form__message--error {
    background-color: rgba(245, 101, 101, 0.2);
    color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

/* Buttons */
.po-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.po-btn:hover {
    background-color: #2980b9;
}

.po-btn--primary {
    background-color: #3498db;
}

.po-btn--primary:hover {
    background-color: #2980b9;
}

.po-btn--secondary {
    background-color: #2d3748;
}

.po-btn--secondary:hover {
    background-color: #4a5568;
}

.po-btn--danger {
    background-color: #e53e3e;
}

.po-btn--danger:hover {
    background-color: #c53030;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

/* Profile Button - Updated to be sticky at bottom left */
.profile-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #1e5799);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
    animation: pulse 2s infinite;
}

.profile-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Profile Info */
.profile-info {
    margin-bottom: 20px;
}

.profile-info__item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2d3748;
}

.profile-info__item:last-child {
    border-bottom: none;
}

.profile-info__label {
    display: block;
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 5px;
}

.profile-info__value {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* Premium Badge */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #1a202c;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Close Button for Profile Modal */
.profile-modal-close {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #4a5568;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 20px;
}

.profile-modal-close:hover {
    background-color: #2d3748;
}

/* Responsive */
@media (max-width: 480px) {
    .po-modal {
        width: 95%;
    }
    
    .profile-button {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}