﻿

:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --text-color: #2b2d42;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --danger-color: #ef233c;
}

/*body {
  background-image: url('/Images/tigerandturtle.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    max-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}*/

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.25rem;
}

.login-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.16rem 1.875rem rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 28.125rem;
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 1.875rem;
}

    .login-header h1 {
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
    }

    .login-header p {
        color: #6c757d;
        font-size: 0.9375rem;
    }

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom:0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9375rem;
    border: 0.0625rem solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0,9375rem;
    transition: border-color 0.3s;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
        outline: none;
    }

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

    .remember-me .form-check-input {
        margin-right: 0.625rem;
    }

.login-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--primary-color);
    border: none;
    transition: background-color 0.3s;
    margin-bottom: 1.25rem;
}

    .login-btn:hover {
        background-color: var(--primary-hover);
    }

.login-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

    .login-links a {
        color: var(--primary-color);
        text-decoration: none;
        font-size:1rem;
        transition: color 0.2s;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

.text-danger {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 0.3125rem;
    display: block;
}

.alert-danger {
    background-color: rgba(239, 35, 60, 0.1);
    border-color: rgba(239, 35, 60, 0.2);
    color: var(--danger-color);
    padding: 0.75rem; /* 12px */
    border-radius: 0.5rem; /* 8px */
    margin-bottom: 1.25rem; /* 20px */
    font-size: 0.875rem; /* 14px */
}

@media (max-width: 36rem) { /* 576px */
    .login-card {
        padding: 1.875rem 1.25rem; /* 30px 20px */
    }

    .login-header h1 {
        font-size: 1.5rem; /* 24px */
    }
}

/***************************************************************************************Erweiterungen für die Register-Seite */
.login-form {
    margin-top: 1.25rem; /* 20px */
}

.password-hint {
    font-size: 0.8125rem; /* 13px */
    color: #6c757d;
    margin-top: 0.3125rem; /* 5px */
}

.external-auth {
    margin-top: 1.875rem; /* 30px */
    text-align: center;
}

    .external-auth .btn {
        margin: 0.3125rem; /* 5px */
        width: 100%;
        max-width: 12.5rem; /* 200px */
    }

.external-auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0; /* 20px */
    color: #6c757d;
}

    .external-auth-divider::before {
        margin-right: 0.625rem; /* 10px */
    }

    .external-auth-divider::after {
        margin-left: 0.625rem; /* 10px */
    }

.confirmation-message {
    margin: 1.5625rem 0; /* 25px */
    text-align: center;
}

.alert {
    padding: 1.25rem; /* 20px */
    border-radius: 0.5rem; /* 8px */
    margin-bottom: 1.25rem; /* 20px */
}

.alert-info {
    background-color: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    color: var(--text-color);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: var(--text-color);
}

.alert-danger {
    background-color: rgba(239, 35, 60, 0.1);
    border: 1px solid rgba(239, 35, 60, 0.2);
    color: var(--danger-color);
}

.alert i {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 0.625rem; /* 10px */
    display: block;
    color: var(--primary-color);
}

.alert-success i {
    color: #28a745;
}

.alert-danger i {
    color: var(--danger-color);
}

.resend-link {
    margin-top: 1.25rem; /* 20px */
    font-size: 0.875rem; /* 14px */
}

.back-to-login,
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    color: var(--text-color);
    text-decoration: none;
}

    .back-to-login:hover,
    .back-to-home:hover {
        color: var(--primary-color);
    }

.password-strength {
    margin-top: 0.3125rem; /* 5px */
    height: 0.3125rem; /* 5px */
    background: #f0f0f0;
    border-radius: 0.1875rem; /* 3px */
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: #ef233c;
    transition: width 0.3s, background 0.3s;
}

.additional-info {
    margin: 1.25rem 0; /* 20px */
    font-size: 0.875rem; /* 14px */
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
    }
