background: url('https://images.unsplash.com/photo-1499793983690-e29da59ef1c2?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.glass-card {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 15px;
padding: 40px;
width: 100%;
max-width: 450px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
text-align: center;
color: white;
box-sizing: border-box;
margin: 20px;
}
.glass-card h2 {
margin-top: 0;
margin-bottom: 25px;
font-weight: 600;
letter-spacing: 1px;
}
.glass-card form {
display: flex;
flex-direction: column;
text-align: left;
}
/* Стилизация стандартных полей Django */
.glass-card form p {
margin-bottom: 15px;
}
.glass-card label {
font-size: 0.9em;
margin-bottom: 5px;
display: block;
}
.glass-card input {
width: 100%;
padding: 12px;
border: none;
border-radius: 8px;
background: rgba(255, 255, 255, 0.9);
font-family: 'Montserrat', sans-serif;
box-sizing: border-box;
color: #333;
}
.glass-card input:focus {
outline: none;
box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}
.glass-card .helptext, .glass-card ul.errorlist {
font-size: 0.75em;
color: rgba(255, 255, 255, 0.8);
margin-top: 5px;
display: block;
}
.glass-card ul.errorlist {
color: #ffb3b3;
list-style-type: none;
padding: 0;
}
.btn {
background: #ffffff;
color: #333;
border: none;
padding: 14px 20px;
border-radius: 25px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 25px;
font-family: 'Montserrat', sans-serif;
font-size: 1em;
}
.btn:hover {
background: #f0f0f0;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.links {
margin-top: 25px;
font-size: 0.9em;
}
.links a {
color: white;
text-decoration: none;
font-weight: 600;
}
.links a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="glass-card">
<h2>Создать аккаунт</h2>
<form method="post">
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
Your password can’t be too similar to your other personal information.
Your password must contain at least 8 characters.
Your password can’t be a commonly used password.
Your password can’t be entirely numeric.
Enter the same password as before, for verification.