/* Modal Overlay - Stake Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content - Stake Style */
.modal-content {
    background: #0f1524;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: none;
    animation: modalSlideIn 0.2s ease-out;
}

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

/* Modal Close Button - Stake Style */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.modal-close:hover {
    background: none;
    opacity: 1;
}

/* Modal Title - Stake Style */
.modal-content h2 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 24px 0;
}

/* Form Styles */
.login-form, .profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    background: #030424;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border: none;
    background: #030424;
}

.form-group input::placeholder {
    color: #8A9BB3;
}

/* Error Message */
.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 12px;
    color: #ff6b6b;
    font-size: 14px;
}

/* Success Message */
.success-message {
    background: rgba(0, 231, 1, 0.1);
    border: 1px solid #00e701;
    border-radius: 8px;
    padding: 12px;
    color: #00ff00;
    font-size: 14px;
}

.message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff6b6b;
}

.message.success {
    background: rgba(0, 231, 1, 0.1);
    border: 1px solid #00e701;
    color: #00ff00;
}

/* Submit Button - Stake Style */
.submit-button {
    background: #00e803;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
    box-shadow: none;
}

.submit-button:hover:not(:disabled) {
    background: #00ff11;
    transform: translateY(-1px);
    box-shadow: none;
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
    background: #00e803;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Divider - Stake Style */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #8A9BB3;
    font-size: 13px;
}

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

.divider span {
    padding: 0 16px;
}

/* Provider Buttons - Stake Style */
.provider-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.provider-button {
    background: #030424;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.provider-button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.3);
    border: none;
}

.provider-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.provider-button.google:hover:not(:disabled) {
    border-color: #4285f4;
}

.provider-button.github:hover:not(:disabled) {
    border-color: #ffffff;
}

/* Switch Mode - Stake Style */
.switch-mode {
    text-align: center;
    margin-top: 24px;
    color: #8A9BB3;
    font-size: 13px;
}

.switch-button {
    background: none;
    border: none;
    color: #1475e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px;
}

.switch-button:hover {
    color: #1a85ff;
}

/* Profile Modal Specific */
.profile-modal {
    max-width: 600px;
}

.profile-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    color: #b1bad3;
    font-weight: 500;
}

.info-item span {
    color: #ffffff;
}

.signout-button {
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 16px;
    width: 100%;
    box-shadow: none;
}

.signout-button:hover {
    background: #f87171;
    transform: translateY(-1px);
    box-shadow: none;
}

.signout-button:active {
    transform: translateY(0);
    background: #ef4444;
    box-shadow: none;
}

/* Wallet Modal - Stake Style */
.wallet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.wallet-modal-content {
    background: #0f1524;
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: none;
    animation: modalSlideIn 0.2s ease-out;
}
