/*
 * Portal Landing Page Styles
 */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Odstranění container wrapperu pro portal stránku */
body .container.custom-container:has(.portal-container),
body .container.custom-container .portal-container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/*
 * Portal Container
 */
.portal-container {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background-color: #f5f5f5 !important;
    overflow: hidden;
    padding: 2rem 1rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.portal-background {
    display: none; /* Použijeme stejné pozadí jako přihlašovací stránka */
}

.portal-content {
    position: relative;
    z-index: 1;
    max-width: 600px !important;
    width: 100% !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(82, 52, 47, 0.15);
    margin: auto !important;
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/*
 * Portal Header
 */
.portal-header {
    margin-bottom: 2rem;
}

.portal-logo {
    max-width: 120px !important;
    height: auto !important;
    width: auto !important;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(82, 52, 47, 0.1));
}

.portal-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #52342f;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .portal-title {
        font-size: 2rem;
    }
}

/*
 * Portal Description
 */
.portal-description {
    margin-bottom: 2.5rem;
}

.portal-description .lead {
    font-size: 1.1rem;
    color: #52342f;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/*
 * Portal Actions
 */
.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.portal-btn-login {
    background-color: #976A57;
    border-color: #976A57;
    color: #fff;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.portal-btn-login:hover,
.portal-btn-login:focus {
    background-color: #8a5f4e;
    border-color: #8a5f4e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(151, 106, 87, 0.3);
}

.portal-btn-website {
    background-color: transparent;
    border-color: #976A57;
    color: #976A57;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.portal-btn-website:hover,
.portal-btn-website:focus {
    background-color: #976A57;
    border-color: #976A57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(151, 106, 87, 0.2);
}

@media (min-width: 576px) {
    .portal-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .portal-btn-login,
    .portal-btn-website {
        flex: 0 0 auto;
        min-width: 200px;
    }
}

/*
 * Portal Footer
 */
.portal-footer {
    width: 100%;
    max-width: 600px;
    padding: 1.5rem 2rem;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.portal-footer p {
    margin: 0;
    color: #52342f;
    font-size: 0.9rem;
    opacity: 0.7;
}

/*
 * Legacy styles (for backward compatibility)
 */
.cover-container {
    max-width: 42em;
}

.masthead {
    margin-bottom: 2rem;
}

.masthead-brand {
    margin-bottom: 0;
}

.nav-masthead .nav-link {
    padding: .25rem 0;
    font-weight: 700;
    color: rgba(255, 255, 255, .5);
    background-color: transparent;
    border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
    border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
    margin-left: 1rem;
}

.nav-masthead .active {
    color: #fff;
    border-bottom-color: #fff;
}

.cover {
    padding: 0 1.5rem;
}

.cover .btn-lg {
    padding: .75rem 1.25rem;
    font-weight: 700;
}

.cover p a {
    font-weight: bold;
    text-decoration: underline;
}

.mastfoot {
    color: rgba(255, 255, 255, .5);
}
