/* WP Login Modal Styles - v1.0.7 */

.wp-login-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

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

.wp-login-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
}

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

.wp-login-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    margin-top: -10px;
    margin-right: -10px;
    transition: color 0.3s;
}

.wp-login-modal-close:hover,
.wp-login-modal-close:focus {
    color: #000;
}

.wp-login-modal h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.wp-login-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    text-align: center;
}

/* Styly pro záložky - výrazná tlačítka */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin: -40px -40px 30px;
    padding: 20px;
    background-color: transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-button:hover {
    background-color: #f9f9f9;
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-button.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(76,175,80,0.3);
}

.tab-button.active:hover {
    background-color: #45a049;
    border-color: #45a049;
    color: white;
}

.modal-content {
    padding: 30px 0 0;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
    animation: fadeIn 0.3s;
}

/* Skrýt neaktivní obsah */
#login-tab:not(.active),
#trial-tab:not(.active) {
    display: none !important;
}

.wp-login-form .form-group {
    margin-bottom: 20px;
}

.wp-login-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

.wp-login-form input[type="text"],
.wp-login-form input[type="password"],
.wp-login-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.wp-login-form input[type="text"]:focus,
.wp-login-form input[type="password"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.remember-me label {
    font-weight: normal;
    cursor: pointer;
}

.login-submit {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.login-submit:hover {
    background-color: #45a049;
}

.login-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Styly pro zkušební přístup */
.wp-trial-form .form-group {
    margin-bottom: 20px;
}

.trial-submit {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.trial-submit:hover {
    background-color: #45a049;
}

.trial-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.agreements label {
    font-weight: normal;
    font-size: 14px;
}

.agreements a {
    color: #4CAF50;
}

.trial-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.trial-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.trial-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.login-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Tlačítko pro otevření modálu */
.wp-login-modal-open {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.wp-login-modal-open:hover {
    background-color: #45a049;
}

/* Styly pro přihlášeného uživatele */
.logged-in-content {
    text-align: center;
}

.user-info {
    margin: 20px 0 30px;
}

.user-info p {
    margin: 10px 0;
    color: #666;
}

.logout-button {
    display: inline-block;
    background-color: #d9534f;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #c9302c;
    color: white;
}

.user-links {
    margin-top: 20px;
}

.user-links a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
}

.user-links a:hover {
    text-decoration: underline;
}

/* Responzivní design */
@media (max-width: 600px) {
    .wp-login-modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20% auto;
    }
}