﻿
.main-container {
    width: 800px;
    max-width: 95%;
    margin: 50px auto;
}

.login-container {
    -webkit-box-shadow: -5px 5px 17px -2px rgba(0, 0, 0, 0.49);
    box-shadow: -5px 5px 17px -2px rgba(0, 0, 0, 0.49);
    border: 0px solid #fff;
    border-radius: 7px;
    padding: 20px;
    width: 400px;
    max-width: 95%;
    margin: auto auto;
}

@media only screen and (max-width: 650px) {
    .login-container {
        width: 100%;
        max-width: unset;
        box-shadow: none;
    }

    .main-container {
        max-width: unset;
        margin: 0;
        width: 100%;
    }
}

@media only screen and (max-width: 400px) {
    html {
        font-size: 13.8px;
    }
}

.morf-container {
    -webkit-box-shadow: -5px 5px 17px -2px rgba(0, 0, 0, 0.49);
    box-shadow: -5px 5px 17px -2px rgba(0, 0, 0, 0.49);
    border: 0px solid #fff;
    border-radius: 7px;
    padding: 30px;
    width: 400px;
    max-width: 95%;
    margin: auto auto;
}

.additional-input-info {
    font-size: 10px;
    opacity: .6;
    display: block;
}

.externalLogin-container {
    display: flex;
    flex-direction: column;
}

.externalLogin-container button {
    margin-top: 15px;
}

.externalLogin-container button:hover {
    background-color: rgba(183, 183, 183, 0.3);
}

button {
    width: 100%;
    font-weight: 400;
}

.separator {
    margin-top: 10px;
    position: relative;
    text-align: center;
    opacity: 0.4;
    font-size: 0.7em;
}

.separator label {
    background-color: #fff;
    padding: 0 0.6em;
    margin-bottom: 3px;
    position: relative;
}

.link {
    color: #000000;
    text-align: center;
}

.link:hover {
    color: #594AE2;
}

.separator:before {
    content: '';
    border-style: solid;
    border-width: 0 0 1px 0;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    border-color: black;
}

/* společné pro všechny externí login tlačítka */
.externalLogin-container button {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* logo vlevo, text vedle */
    padding: 0 16px; /* horizontální padding */
    height: 40px; /* výška tlačítka */
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(183, 183, 183, 0.49);
    cursor: pointer;
    text-align: left;
}

/* ikona ve všech tlačítkách */
.externalLogin-container button img {
    height: 20px; /* Apple doporučuje ~20px */
    width: 20px;
    margin-right: 12px; /* vzdálenost mezi logem a textem */
}

/* tlačítka externích providerů */
#google-btn, #microsoft-btn, #facebook-btn, #apple-btn {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid rgba(183, 183, 183, 0.49);
}

#microsoft-btn img {
}

#login-btn {
    background-color: #594AE2;
    color: white;
}

#register-btn {
    background-color: #594AE2;
    color: white;
    font-weight: bold;
}

.reg-container {
    margin: 0 auto;
    max-width: 530px;
    /*text-align: center;*/
}

@media only screen and (max-width: 380px) {
    #google-btn, #facebook-btn, #microsoft-btn, #apple-btn {
        font-size: 12px;
    }
}


.btn-morf {
    background-color: #594AE2;
    color: white;
}

.mb-100 {
    margin-bottom: 100px;
}

.mb-50 {
    margin-bottom: 50px;
}


#remember-label {
    margin-left: 40px !important;
    margin-bottom: 0 !important;
}


.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

label {
    margin-bottom: 0 !important;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #594AE2;
}

input:focus + .slider {
    box-shadow: 0 0 1px #594AE2;
}

input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.remember-container {
    display: flex;
    margin: 30px 0;
    align-items: center;
}

/* Version text on Login page */
.version {
    display: table;
    margin: 0 auto;
}


.field-validation-error {
    color: #dc3545;
    line-height: 2rem;
}

.input-validation-error {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .25);
}

.field-validation-valid {
    display: none;
}
