﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#switch-icon {
    position: absolute;
    top: -30px; 
    right: -30px; 
    cursor: pointer;
    font-size: 3rem; 
    background-color: #007bff;
    color: white;
    border-radius: 50%; 
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease-in-out; 
}

    #switch-icon:hover {
        transform: scale(1.1);
    }

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: normal;
    font-size: 1.8rem;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1rem;
}

.btn {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

    .btn.primary {
        background-color: #007bff;
        color: white;
        border: none;
    }

        .btn.primary:hover {
            background-color: #0056b3;
        }

.section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

    .section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h2 {
        font-size: 1.6rem;
    }

    input[type="email"],
    input[type="text"],
    input[type="password"] {
        font-size: 1rem;
    }

    .btn {
        font-size: 1rem;
    }

    #switch-icon {
        position: absolute;
        top: -25px; 
        right: -25px; 
        cursor: pointer;
        font-size: 2.5rem; 
        background-color: #007bff; 
        color: white;
        border-radius: 50%; 
        padding: 20px;
        width: 60px; 
        height: 60px; 
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out; 
    }

        #switch-icon:hover {
            transform: scale(1.1); 
        }

    
    @media (max-width: 600px) {
        #switch-icon {
            font-size: 2rem;
            top: -20px;
            right: -20px;
            width: 50px;
            height: 50px;
            padding: 15px;
        }
    }
}


.button-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    color: red;
    font-weight: bold;
}